Based on the user input, HTMLButtons are placed at the bottom of the webpages. These Buttons are visible only when I scroll down. TP is unable to scroll down and perform actions on these Buttons, unless I introduce a long sleep before the HTMLButton.Click action.
Is there a better way to handle objects that are dynamically placed out of visible area ?
Though TP fails to perform the intended actions on these buttons, it simply continues to execute the later part of the script, why does this happen ? Any ideas/suggestions would help.
I have never seen TP have issues with this... especially since this was a big reason to go from QARun to TP when in a web environment.
Anyway... change your click to .OBJECT.Click . The difference is that by default TP moves the mouse to an object and performs a click on it just as a user would. If you use HTMLButton().Object.Click you are calling the DOM method of click and the mouse does not have to go to the button.