Forum Discussion
After you execute an action to navigate to a page, if you call the new page's Wait method, that method will return one of two things. From the help:
"
The Wait
method returns the URL of the page or resource that was loaded last on the page. If the web page does not contain frames and the page was loaded successfully, the Wait
method returns the page’s URL. If the page contains frames, the method will return the URL of the last page that was loaded in the frame.
If the loading was not successful or the page was not loaded before the time limit specified by the WaitTime parameter was reached, the method returns an empty string."
This is a more accurate check to see if your page loaded than a region comparison. You check the string that is returned... if it contains the correct URL, you're on the right page. If it returns a blank string, you're on the wrong page.
If you still want to do an image comparison, you would use the PagePicture method to capture the whole page.
Related Content
- 9 years agonicorette
- 10 years agobartosz_qa
Recent Discussions
- 2 days agoGane195