public void Bugzilla32902Test() { if (RunningApp.IsTablet()) { RunningApp.Tap(q => q.Marked("btnNext")); RunningApp.Tap(q => q.Marked("btnPushModal")); RunningApp.Tap(q => q.Marked("Flyout")); RunningApp.Tap(q => q.Marked("btnPop")); } }
public void MasterStillVisibleAfterPushingAndPoppingModalPage() { if (!RunningApp.IsTablet()) { return; } RunningApp.SetOrientationLandscape(); RunningApp.WaitForElement("Split"); RunningApp.WaitForElement("Flyout Visible"); RunningApp.Tap("PushModalPage"); RunningApp.Tap("PopModalPage"); RunningApp.WaitForElement("Flyout Visible"); }
public void Bugzilla31602Test() { if (RunningApp.IsTablet()) { RunningApp.Tap(q => q.Marked("Sidemenu Opener")); RunningApp.WaitForElement(q => q.Marked("SideMenu")); RunningApp.SetOrientationLandscape(); RunningApp.WaitForElement(q => q.Marked("SideMenu")); RunningApp.SetOrientationPortrait(); RunningApp.WaitForNoElement(q => q.Marked("SideMenu")); RunningApp.Tap(q => q.Marked("Sidemenu Opener")); RunningApp.WaitForElement(q => q.Marked("SideMenu")); } }
public void Bugzilla34632Test() { if (RunningApp.IsTablet()) { RunningApp.SetOrientationPortrait(); RunningApp.Tap(q => q.Marked("btnModal")); RunningApp.SetOrientationLandscape(); RunningApp.Tap(q => q.Marked("btnDismissModal")); RunningApp.Tap(q => q.Marked("btnModal")); RunningApp.SetOrientationPortrait(); RunningApp.Tap(q => q.Marked("btnDismissModal")); RunningApp.Tap("Main Page"); RunningApp.Tap(q => q.Marked("btnMaster")); RunningApp.WaitForNoElement("btnMaster"); } else { // Wait for the test to finish loading before exiting otherwise // the next UI test might start running while this is still loading RunningApp.WaitForElement(q => q.Marked("btnModal")); } }
public void SplitOnLandscapeFailsToDetectClose() { if (!RunningApp.IsTablet()) { return; } while (RunningApp.WaitForElement("CurrentMasterBehavior")[0].ReadText() != FlyoutLayoutBehavior.SplitOnLandscape.ToString()) { RunningApp.Tap("ChangeMasterBehavior"); if (RunningApp.Query("Flyout Visible").Length > 0) { RunningApp.Tap("Close Flyout"); } } RunningApp.Tap("Flyout"); RunningApp.WaitForElement("Flyout Visible"); RunningApp.Tap("Close Flyout"); RunningApp.SetOrientationLandscape(); RunningApp.SetOrientationPortrait(); RunningApp.SetOrientationLandscape(); RunningApp.SetOrientationPortrait(); if (RunningApp.Query("Flyout Visible").Length > 0) { RunningApp.Tap("Close Flyout"); } RunningApp.Tap("Flyout"); RunningApp.WaitForElement("Flyout Visible"); RunningApp.Tap("Close Flyout"); RunningApp.Tap("Flyout"); RunningApp.WaitForElement("Flyout Visible"); }