Skip to content

Instantly share code, notes, and snippets.

@jimevans
Created November 3, 2011 20:03
Show Gist options
  • Save jimevans/1337636 to your computer and use it in GitHub Desktop.
Save jimevans/1337636 to your computer and use it in GitHub Desktop.
//Wait until "Processing" objects goes away
DateTime endTime = DateTime.Now.Add(TimeSpan.FromSeconds(10));
while (driver.FindElement(By.CssSelector("div[id*='processing']")).Displayed && DateTime.Now < endTime)
{
Thread.Sleep(100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment