Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selenium web recorder and QM
#3
Here fails too. Selenium does not find this element: "css=input.placeholder.E_acct". When running from Selenium IDE, fails too. Selenium IDE can find the element when using "//div[@id='m_commonLogin']/div/span/input", but need to insert pause 30000 before. However the script in QM fails even then.

I would use QM functions instead.
Macro Macro2497
Code:
Copy      Help
run "http://bbs.duowan.com/forum-779-1.html"
1
int w=wait(30 WV win("PS3讨论区 - 多玩游戏论坛 - - Mozilla Firefox" "MozillaWindowClass"))
1
Acc a.FindFF(w "BUTTON" "" "onclick=javascript:udblogin();" 0x1004 30)
a.DoDefaultAction
AutoPassword "user" "password" 2|4 w 30

AutoPassword here is quite slow. This is faster:
Macro Macro2498
Code:
Copy      Help
run "http://bbs.duowan.com/forum-779-1.html"
1
int w=wait(30 WV win("PS3讨论区 - 多玩游戏论坛 - - Mozilla Firefox" "MozillaWindowClass"))
1
Acc a.FindFF(w "BUTTON" "" "onclick=javascript:udblogin();" 0x1004 30)
a.DoDefaultAction
;g1
a.FindFF(w "INPUT" "" "class=placeholder E_acct" 0x1084 30)
err 0.5; goto g1 ;;sometimes error "failed to get object", probably the macro is too fast, therefore we wait 0.5 s and retry
a.Select(1)
key "user" T "password"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)