CodedUI Visual Studio: how to wait for a browser to load

I was wondering if anyone is new on how to make Automation Script in CodedUI, wait for the webpage to load before continuing with the script.

So, I fill out the form and click the Continue button, then Script expires because it stops waiting. I understand that I can use Playback.wait, but then I will have a code, every time I click continue ... and I have hundreds of scripts! Something similar to Seleniums WaitforBrowserLoad, but for CodedUI

C # CodedUI in VS 2012

Any help would be greatly appreciated.

+4
source share
2 answers

You can also use:

Playback.PlaybackSettings.WaitForReadyLevel = WaitForReadyLevel.AllThreads;
+1
source
+2

Source: https://habr.com/ru/post/1535669/


All Articles