Пример #1
0
 public void TestButton()
 {
     if (Issue1461Helpers.ShouldRunTest(RunningApp))
     {
         RunningApp.SetOrientationLandscape();
         RunningApp.WaitForNoElement(q => q.Marked("bank"));
         RunningApp.SetOrientationPortrait();
         RunningApp.WaitForElement(q => q.Marked("bank"));
     }
     else
     {
         Assert.Inconclusive("Only run on iOS Tablet");
     }
 }
Пример #2
0
 public void Test2()
 {
     if (Issue1461Helpers.ShouldRunTest(RunningApp))
     {
         RunningApp.SetOrientationLandscape();
         var query = RunningApp.Query(q => q.Marked("Master_Label"));
         Assert.IsTrue(query.Any(), "Master should be present");
         RunningApp.Screenshot("Master should not present");
         RunningApp.SetOrientationPortrait();
         query = RunningApp.Query(q => q.Marked("Master_Label"));
         Assert.IsTrue(!query.Any(), "Master should not present");
         RunningApp.Screenshot("Master should not present");
         RunningApp.Tap(q => q.Marked("Go Back"));
     }
     else
     {
         Assert.Inconclusive("Only run on iOS Tablet");
     }
 }