Forum Discussion
Try waiting for your particular object instead of the page
Is there anyway to wait for page fully loaded? because if I wait for a particular object, it can only apply to that specific test step, but if I can wait for a page fully loaded, then I can use it for all tests.
- Marsha_R5 years agoModerator
Yes, you are using the proper wait function for the page. I suggest checking the Result value to make sure you are waiting long enough.
Result Value
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, theWait
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.
- whuang5 years agoRegular Contributor
Thank you for the reply. I tried the Wait method and gave it 30 seconds to wait for the page, but it only waited for 4 seconds and then logged the page I asked it to wait for cannot be found. I believe the format I used is correct, Sys.Browser("*").Page("Page_URL").Wait(30000)
- Marsha_R5 years agoModerator
For troubleshooting purposes, try a specific browser and a specific page in that line of code and see if it works.
Related Content
- 5 years ago
- 13 years ago
- 12 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago