Forum Discussion
AlexeyKolosov
13 years agoStaff
Hello Raj,
Try specifying the Page object more precisely and provide some wait time for refreshing the Sys tree after the TC_FinishAction click:
...
'click on the finish button
Set fbutton= all.item("TC_FinishAction")
fbutton.click
' wait for the page to load
Sys.Refresh()
Set page = Sys.Process("firefox").WaitPage("*AutomatedProcesses*", 1500)
Set ActionsBtn = page.NativeWebObject.Find("class","button TC_ActionButton")
' checks if the button exists
If MyBtn.Exists Then
' click on the actions button
MyBtn.Click
...
Besides, I'd recommend disabling the UI Automation for the Page objects, if this is not crucial for your test purposes.
Related Content
- 4 years agosarad