TestProject Forum
Powered by leading experts in the test automation community

How to wait for browser load with CodedUI

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 ?

You could try using:

Playback.PlaybackSettings.WaitForReadyLevel = WaitForReadyLevel.AllThreads;

Hope this helps.