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<DropdownWebElement> action, DropdownWebElement webElement = null) { action(webElement ?? this); if (ParentPage is ContainerBasePage) (ParentPage as ContainerBasePage).WaitForPageToLoad(); else ParentPage.WaitForPageToLoad(); }