Exemplo n.º 1
0
        public static StubbornWebElement ClickButtonToOpen(this StubbornWebElement element, By expectedPopupElement,
                                                           Func <IWebElement, bool> predicate = null)
        {
            element.ClickButton(webElement => ElementIsVisible(webElement().Driver(), expectedPopupElement, predicate));

            return(new StubbornWebElement(expectedPopupElement, element));
        }
Exemplo n.º 2
0
 public static void ClickButtonToClose(this StubbornWebElement element, By expectedMissingElement = null)
 {
     if (expectedMissingElement == null)
     {
         expectedMissingElement = element.Selector;
     }
     element.ClickButton(_ => ExpectedConditions.InvisibilityOfElementLocated(expectedMissingElement));
 }