Beispiel #1
0
        public IWebElement WaitForMe()
        {
            var wait = new WebDriverWait(WrappedDriver, TimeSpan.FromMilliseconds(TimeoutMs));

            wait.Message = $"{this} was not found";
            wait.Until(driver => !FindMe().IsStale());
            if (TestContext.CurrentContext.TestConfig.HighlightElements)
            {
                WebElement.Highlight();
            }

            return(WebElement);
        }