Automobile.Mobile.Android.Automation.AndroidBrowser.WaitForReady C# (CSharp) Method

WaitForReady() public method

Wait for the browser to complete any loading
public WaitForReady ( ) : void
return void
        public override void WaitForReady()
        {
            try
            {
                // There seems to be a short time between when an an action (ie. click a link) occurs and the loading begins.
                // This gives things a chance to catch up.
                Thread.Sleep(1500);
                Client.LoadTrigger.WaitOne(10000);
            }
            catch (TimeoutException)
            {
                throw new TimeoutException("Timed out waiting for browser to be ready");
            }
        }