I want to wait untill an element is visible before WebDriver performs actions. I learnt that was possible with something like this:
WebDriverWait wait = new WebDriverWait(driver, new TimeSpan(0,0,5));
wait.Until(By.Id("login"));
But this has some kind of flaw. Can someone help me out?