26 Eylül 2014 Cuma

Selenium Click İşlemleri

Seems like I have to use this line of code before I invoke any click events. The "clickAndWait" conversion of the Selenium IDE to Webdriver doesn't seem to work properly. It converts everything to *.Click(). Adding the implicit wait after every click event and setting WAIT_TIME to 3 in my Constants class seems to do the trick.
driver.FindElement(By.CssSelector("input[type=\"submit\"]")).Click();
driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(Constants.WAIT_TIME));
driver.FindElement(By.LinkText("Products")).Click();
driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(Constants.WAIT_TIME));

Hiç yorum yok:

Yorum Gönder