I want to make sure that an element is present before the webdriver starts doing stuff.
I\'m trying to get something like this to work:
WebDriverWait w
You can use the following
WebDriverWait wait = new WebDriverWait(driver, new TimeSpan(0,0,5)); wait.Until(ExpectedConditions.ElementToBeClickable((By.Id("login")));