cancel
Showing results for 
Search instead for 
Did you mean: 

WaitPage method keeps waiting for page after the page loaded completely

SOLVED
Highlighted
Frequent Contributor

WaitPage method keeps waiting for page after the page loaded completely

I used "Call Aliases.browser.WaitPage("https://*/WebStore/(Account)|(Checkout)/Order*",20000)" to wait for page "https://www.test.com/WebStore/Checkout/OrderDetails.aspx?ws=xxxxxxxxxxxxxxxxxxxx", but it keeps waiting for the page after the page is loaded completely until it runns out time. Is it because I was using a wrong WaitPage method?

 

Thanks!

Capture.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: WaitPage method keeps waiting for page after the page loaded completely

Insteead of WaitPage, I'd navigate to the page and then call the "Wait" method on the page object...

 

Aliases.Browser.FirstPage.Link.Click();

Aliases.Browser.secondPage.Wait();


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

Re: WaitPage method keeps waiting for page after the page loaded completely

Insteead of WaitPage, I'd navigate to the page and then call the "Wait" method on the page object...

 

Aliases.Browser.FirstPage.Link.Click();

Aliases.Browser.secondPage.Wait();


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

Highlighted
Frequent Contributor

Re: WaitPage method keeps waiting for page after the page loaded completely

Thank you!

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors