How to wait for browser load with CodedUI

  • 1 Replies
  • 1832 Views
How to wait for browser load with CodedUI
« on: April 27, 2016, 16:07:36 pm »
How can I make CodedUI wait for the web page to load before continuing on with the script ?

I press the Login button on a form which I filled out and the script times out because it gives up waiting.
I know I can use Playback.wait but then I would have code this each time I click Login.

Is there anything like Selenium's WaitforBrowserLoad ?

*

Ruhit

  • *
  • 22
Re: How to wait for browser load with CodedUI
« Reply #1 on: April 27, 2016, 17:36:18 pm »
You could try using:

Code
Playback.PlaybackSettings.WaitForReadyLevel = WaitForReadyLevel.AllThreads;

Hope this helps.

 

Sitemap 1 2 3 4 5 6 7 8