Forum Discussion

whuang's avatar
whuang
Regular Contributor
5 years ago
Solved

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!

  • 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();

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    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();