protected SeleniumElement(IWebDriver driver, By by, SeleniumBrowser seleniumBrowser) { Driver = driver; By = by; _seleniumBrowser = seleniumBrowser; Wait = new WebDriverWait(Driver, _seleniumBrowser.GetElementWaitTimeSpan()); if (_seleniumBrowser.IsElementHighlighterEnabled()) { _elementHighlighter = new ElementHighlighter(Driver, By, seleniumBrowser.GetElementWaitTimeSpan()); _elementHighlighter.HighlightElementBackground(); } }
private bool IsHighlightingEnabled() { return(_seleniumBrowser.IsElementHighlighterEnabled()); }