public override Element FindElement(By locator)
        {
            IWebElement nativeWebElement =
                _webDriverWait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementExists(locator));
            Element element    = new WebElement(_webDriver, nativeWebElement, locator);
            Element logElement = new LogElement(element);

            return(logElement);
        }
Esempio n. 2
0
        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);
        }