public static void SwitchBackToParent(this IPopup popup, WaitForPopupToClose waitForClose = WaitForPopupToClose.No) { PopUpWindow.SwitchTo(ParentWindowTitles[popup]); if (waitForClose == WaitForPopupToClose.Yes) { Wait.Until(d => !popup.IsDisplayed()); } }
public static void SwitchTo(this IPopup popup, bool partialMatch = false) { ParentWindowTitles[popup] = Web.PortalDriver.Title; if (partialMatch) { PopUpWindow.SwitchTo(popup.Title, true); } else { PopUpWindow.SwitchTo(popup.Title); } }