Why the Wait method sometimes works sometimes not?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why the Wait method sometimes works sometimes not?
Hi Support team,
I used the page.wait method and gave it max 60 seconds to wait, but sometimes it waited sometime not. Whenever it works, the top right indicator shows "Wait until the web page is loaded", whenever it doesn't work, the indicator shows "Waiting for Page('https://xxxxxxx')", and it definitely didn't wait for 60 seconds. I was running the exactly the same code. Can someone tell me how I can fix this?
Thanks!
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have found that unreliable as I beleive the page can become ready but not all objects have been rendered yet.
I have been using the WaitAliasChild to wait for a particular object that I have mapped be rendered then perceed.I That way I also know that the object I need is there and can time it out if it does not show in time. this allows me to put it as part of an if statement so i can handle it being there or not.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In addition to the said above by @kevin_kapell :
Does this (https://community.smartbear.com/t5/TestComplete-General-Discussions/Anyway-to-rerun-failed-test-auto...) help with your case?
/Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
