01-26-2015, 05:57 PM
Try to add flag 1 in web.
For example, this macro often fails:
Macro Macro2467
But does not fail with flag 1:
Macro Macro2467
Reason - the new page in new tab is not fully loaded, and a.Find finds the text box object in old page/tab, which now is in background. With flag 1 web waits until fully loaded.
For example, this macro often fails:
Macro Macro2467
web "http://www.quickmacros.com" 12
int w=wait(3 WV win("Internet Explorer" "IEFrame"))
act w
Acc a.Find(w "TEXT" "" "a:name=q" 0x3004 3)
a.SetValue("A")
1
a.Select(1)
key "B"
Macro Macro2467
Reason - the new page in new tab is not fully loaded, and a.Find finds the text box object in old page/tab, which now is in background. With flag 1 web waits until fully loaded.