cancel
Showing results for 
Search instead for 
Did you mean: 

Why the Wait method sometimes works sometimes not?

SOLVED
Highlighted
Frequent Contributor

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?

Capture.JPG  Capture6.JPG

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Frequent Contributor

Re: Why the Wait method sometimes works sometimes not?

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.

2 REPLIES 2
Frequent Contributor

Re: Why the Wait method sometimes works sometimes not?

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.

Community Hero

Re: Why the Wait method sometimes works sometimes not?

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?

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors