public override Element FindElement(By locator) { IWebElement nativeWebElement = _webDriverWait.Until(drv => drv.FindElement(locator)); Element element = new WebElement(_webDriver, nativeWebElement, locator); // If we use log decorator. LogElement logElement = new LogElement(element); return(logElement); }
public override Element FindElement(By locator) { IWebElement nativeWebElement = _webDriverWait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementExists(locator)); Element element = new WebElement(_webDriver, nativeWebElement, locator); // If we use log decorator. Element logElement = new LogElement(element); return(logElement); }