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 SwitchBackToParent(this IPopup popup, WaitForPopupToClose waitForClose = WaitForPopupToClose.No)
 {
     PopUpWindow.SwitchTo(ParentWindowTitles[popup]);
     if (waitForClose == WaitForPopupToClose.Yes)
     {
         Wait.Until(d => !popup.IsDisplayed());
     }
 }