public void PerformActionAndWaitForPageToLoad(Action <DropdownWebElement> action, DropdownWebElement webElement = null) { action(webElement ?? this); if (ParentPage is ContainerBasePage) { (ParentPage as ContainerBasePage).WaitForPageToLoad(); } else { ParentPage.WaitForPageToLoad(); } }
public void PerformActionAndWaitForPageToLoad(Action <LinkWebElement <T> > action, LinkWebElement <T> webElement) { action(webElement ?? this); ParentPage.WaitForPageToLoad(); }