I want to explicitly wait till my element is enabled to click on screen. But currently what happened is element is visible but due to loading symbol driver is not able to click element & code fails. If I use implicate wait then code works. any suggestions
WebDriverWait wait1 = new WebDriverWait(driver, new TimeSpan(0,0,60));
wait1.Until(ExpectedConditions.ElementSelectionStateToBe(By.XPath(GPDNav),true));
// wait1.Until(ExpectedConditions.ElementIsVisible(By.XPath(GPDNav)));
IWebElement gpdNav = driver.FindElement(By.XPath(GPDNav));
gpdNav.Click();
Aucun commentaire:
Enregistrer un commentaire