public async Task Bugzilla32615Test() { RunningApp.Tap(q => q.Marked("btnModal")); RunningApp.Tap(q => q.Marked("btnPop")); await Task.Delay(1000); RunningApp.WaitForElement("1"); }
public void Issue2740Test() { RunningApp.WaitForElement(q => q.Marked("1")); RunningApp.Tap(q => q.Marked("1")); RunningApp.WaitForElement(q => q.Marked("Switch")); RunningApp.Tap(q => q.Marked("Switch")); RunningApp.WaitForElement(q => q.Marked("1")); }
public void IsRefreshingAndCommandTest() { RunningApp.Tap(q => q.Button("Toggle Refresh")); RunningApp.WaitForElement(q => q.Marked("IsRefreshing: True")); RunningApp.Screenshot("Refreshing"); RunningApp.WaitForElement(q => q.Marked("IsRefreshing: False")); RunningApp.Screenshot("Refreshed"); }
public void BottomTabbedPageWithModalIssueTestsAllElementsPresent() { RunningApp.WaitForElement(q => q.Marked("Page 1")); RunningApp.WaitForElement(q => q.Marked("Page 2")); RunningApp.WaitForElement(q => q.Button("Pop")); RunningApp.Screenshot("All elements present"); }
public void Bugzilla51173_NonexistentUri() { RunningApp.WaitForElement(q => q.Marked(UriDoesNotExist)); RunningApp.Tap(UriDoesNotExist); RunningApp.WaitForElement(q => q.Marked(ErrorLogged)); RunningApp.WaitForElement(q => q.Marked(NotLoading)); }
public void TestIssue1763ItemTappedFiring() { RunningApp.WaitForElement(q => q.Marked("Contacts")); RunningApp.Tap(q => q.Marked("Egor1")); RunningApp.WaitForElement(q => q.Marked("Tapped a List item")); RunningApp.Tap(q => q.Marked("Destruction")); RunningApp.WaitForElement(q => q.Marked("Contacts")); }
public void AddingItemToUnviewedCollectionViewShouldNotCrash() { RunningApp.WaitForElement(Add1); RunningApp.Tap(Add1); RunningApp.Tap(Tab2); RunningApp.WaitForElement(Success); }
public void Issue8529ShellBackButtonBehaviorCommandPropertyCanUseICommand() { RunningApp.WaitForElement(ButtonId, "Timed out waiting for first page."); RunningApp.Tap(ButtonId); RunningApp.WaitForElement("LabelId", "Timed out waiting for the destination page."); NavigateBack(); RunningApp.WaitForElement(ButtonId, "Timed out waiting to navigate back to the first page."); }
public void Bugzilla33870Test() { RunningApp.WaitForElement(x => x.Marked(PageContentAutomatedId)); RunningApp.WaitForElement(x => x.Marked(ListViewAutomatedId)); RunningApp.Tap(q => q.Marked(ClearSelectionItem)); RunningApp.WaitForElement(x => x.Marked(SelectionClearedText)); }
public void Bugzilla39530TapTest() { RunningApp.WaitForElement(q => q.Marked("frame")); RunningApp.Tap("frame"); RunningApp.WaitForElement(q => q.Marked("Taps: 1")); RunningApp.Tap("frame"); RunningApp.WaitForElement(q => q.Marked("Taps: 2")); }
public void FlyoutItemSizesToExplicitHeight() { RunningApp.WaitForElement("PageLoaded"); this.ShowFlyout(); var height = RunningApp.WaitForElement("SmallFlyoutItem")[0].Rect.Height; Assert.That(height, Is.EqualTo(SmallFlyoutItem).Within(1)); }
public void OpenMDP() { #if __IOS__ RunningApp.Tap(q => q.Marked("Menu")); #else RunningApp.Tap("ShowMasterBtn"); #endif }
public void Bugzilla31395Test() { RunningApp.WaitForElement(q => q.Marked("Switch Main Page")); Assert.DoesNotThrow(() => { RunningApp.Tap(c => c.Marked("Switch Main Page")); }); RunningApp.WaitForElement(q => q.Marked("Hello")); }
public void SearchHandlerSizesCorrectly() { RunningApp.WaitForElement("SearchHandler"); RunningApp.EnterText("SearchHandler", "Hello"); var contentSize = RunningApp.WaitForElement("searchresult")[0].Rect; Assert.Less(contentSize.Height, 100); }
public void AddingGroupToUnviewedGroupedCollectionViewShouldNotCrash() { RunningApp.WaitForElement(Add2); RunningApp.Tap(Add2); RunningApp.Tap(Tab3); RunningApp.WaitForElement(Success); }
public void FlyoutHeaderWithZeroMarginShouldHaveNoY() { RunningApp.WaitForElement("PageLoaded"); this.TapInFlyout("ZeroMarginHeader", makeSureFlyoutStaysOpen: true); var layout = RunningApp.WaitForElement("ZeroMarginLayout")[0].Rect.Y; Assert.AreEqual(0, layout); }
public void Bugzilla51825Test() { RunningApp.WaitForElement(q => q.Marked("Bugzilla51825SearchBar")); RunningApp.EnterText(q => q.Marked("Bugzilla51825SearchBar"), "Hello"); RunningApp.WaitForElement(q => q.Text("Hello")); RunningApp.Tap("Bugzilla51825Button"); RunningApp.WaitForElement(q => q.Text("Test")); }
public void CanDisplayModalOverMap() { RunningApp.WaitForElement(StartTest); RunningApp.Tap(StartTest); RunningApp.WaitForElement(DisplayModal); RunningApp.Tap(DisplayModal); RunningApp.WaitForElement(Success); }
public void Issue31333FocusEditorInTableViewCell() { RunningApp.Tap(q => q.Marked("Focus Editor in Table")); RunningApp.Screenshot("Editor control in TableView cell is focused"); RunningApp.EnterText("Editor in TableView Success"); Assert.True(RunningApp.Query(query => query.Text("Editor in TableView Success")).Length > 0); RunningApp.Screenshot("Editor in TableView Success"); }
public void Issue1Test() { RunningApp.Screenshot("I am at Issue 2976"); RunningApp.Tap(q => q.Marked("DEMOA")); RunningApp.Tap(q => q.Marked("DEMOB")); RunningApp.Tap(q => q.Marked("DEMOC")); RunningApp.Tap(q => q.Marked("DEMOD")); }
public void FlyoutTests() { // Flyout is visible RunningApp.WaitForElement(EnableFlyoutBehavior); // Starting shell out as disabled correctly disables flyout RunningApp.WaitForNoElement(FlyoutIconAutomationId, "Flyout Icon Visible on Startup"); ShowFlyout(usingSwipe: true, testForFlyoutIcon: false); RunningApp.WaitForNoElement(FlyoutItem, "Flyout Visible on Startup"); // Enable Flyout Test RunningApp.Tap(EnableFlyoutBehavior); ShowFlyout(usingSwipe: true); RunningApp.WaitForElement(FlyoutItem, "Flyout Not Visible after Enabled"); RunningApp.Tap(FlyoutItem); // Flyout Icon is not visible but you can still swipe open RunningApp.Tap(DisableFlyoutBehavior); RunningApp.WaitForNoElement(FlyoutIconAutomationId, "Flyout Icon Visible after being Disabled"); ShowFlyout(usingSwipe: true, testForFlyoutIcon: false); RunningApp.WaitForNoElement(FlyoutItem, "Flyout Visible after being Disabled"); // enable flyout and make sure disabling back button behavior doesn't hide icon RunningApp.Tap(EnableFlyoutBehavior); RunningApp.WaitForElement(FlyoutIconAutomationId); RunningApp.Tap(DisableBackButtonBehavior); ShowFlyout(usingSwipe: true); RunningApp.WaitForElement(FlyoutItem, "Flyout swipe not working after Disabling Back Button Behavior"); RunningApp.Tap(FlyoutItem); // make sure you can still open flyout via code RunningApp.Tap(EnableFlyoutBehavior); RunningApp.Tap(EnableBackButtonBehavior); RunningApp.Tap(OpenFlyout); RunningApp.WaitForElement(FlyoutItem, "Flyout not opening via code"); RunningApp.Tap(FlyoutItem); // make sure you can still open flyout via code if flyout behavior is disabled RunningApp.Tap(DisableFlyoutBehavior); RunningApp.Tap(EnableBackButtonBehavior); RunningApp.Tap(OpenFlyout); RunningApp.WaitForElement(FlyoutItem, "Flyout not opening via code when flyout behavior disabled"); RunningApp.Tap(FlyoutItem); // make sure you can still open flyout via code if back button behavior is disabled RunningApp.Tap(EnableFlyoutBehavior); RunningApp.Tap(DisableBackButtonBehavior); RunningApp.Tap(OpenFlyout); RunningApp.WaitForElement(FlyoutItem, "Flyout not opening via code when back button behavior is disabled"); RunningApp.Tap(FlyoutItem); // FlyoutLocked ensure that the flyout and buttons are still visible RunningApp.Tap(EnableBackButtonBehavior); RunningApp.Tap(LockFlyoutBehavior); RunningApp.WaitForElement(title, "Flyout Locked hiding content"); RunningApp.Tap(EnableFlyoutBehavior); }
public async Task Bugzilla60691_Tel() { RunningApp.WaitForElement(q => q.Marked("tel")); RunningApp.Tap(q => q.Marked("tel")); await Task.Delay(500); RunningApp.Screenshot("Should have loaded phone with 123-4567"); }
public void Issue968TestsRotationRelayoutIssue() { RunningApp.WaitForElement("TestReady"); RunningApp.SetOrientationLandscape(); RunningApp.Screenshot("Rotated to Landscape"); RunningApp.WaitForElement(q => q.Marked("You should see me after rotating")); RunningApp.Screenshot("StackLayout in Modal respects rotation"); RunningApp.SetOrientationPortrait(); }
public void WkWebViewDisposesProperly() { RunningApp.Tap("NextButton"); RunningApp.Tap("BackButton"); RunningApp.Tap("NextButton"); RunningApp.Tap("BackButton"); RunningApp.Tap("NextButton"); RunningApp.Tap("BackButton"); }
public void Issue1760_1Test() { RunningApp.WaitForElement(Issue1760.Before); RunningApp.WaitForElement(Issue1760.After); RunningApp.Tap("Test Page 1"); RunningApp.WaitForElement(Issue1760.Before); RunningApp.WaitForElement(Issue1760.After); }
public void Issue2680Test_ScrollEnabled() { RunningApp.Tap(q => q.Button(ToggleButtonMark)); RunningApp.ScrollDown(ScrollViewMark); RunningApp.ScrollDown(ScrollViewMark); RunningApp.WaitForNoElement(FirstItemMark, timeout: TimeSpan.FromSeconds(5)); }
public void _36703Test() { RunningApp.WaitForElement(TestImage); RunningApp.Tap(TestImage); RunningApp.WaitForElement(Testing); RunningApp.Tap(Toggle); RunningApp.Tap(TestImage); RunningApp.WaitForElement(Success); }
public void Issue2259Tests() { for (int i = 0; i < 20; i++) { RunningApp.Tap(q => q.Button("Add")); RunningApp.WaitForElement(q => q.Marked("Name " + (i + 1).ToString())); RunningApp.Screenshot("Added Cell"); } }
public void Issue2953Test() { RunningApp.Screenshot("I am at Issue 2953"); RunningApp.WaitForElement(q => q.Marked("Header 3")); RunningApp.Screenshot("I see the Header 3"); RunningApp.Tap(q => q.Marked("btnRemove")); RunningApp.WaitForElement(q => q.Marked("Header 3")); RunningApp.Screenshot("I still see the Header 3"); }
void TestForImageNotVisible(UITest.Queries.AppResult previousFinding) { var imageVisible = RunningApp.Query(_fileNameAutomationId); if (imageVisible.Length > 0) { Assert.Less(imageVisible[0].Rect.Height, previousFinding.Rect.Height); } }
private static bool EnumRunningAppsCallback( ref Object Data, ref RUNNING_APP RunningAppRaw) { Dbg("EnumRunningAppsCallback: in, sizeof(RunningApp)=" + Marshal.SizeOf(RunningAppRaw)); RunningApp runningApp = new RunningApp() { AppID = LPWStrToString(RunningAppRaw.AppID), CarrierExeName = LPWStrToString(RunningAppRaw.CarrierExeName), FriendlyName = LPWStrToString(RunningAppRaw.FriendlyName), CarrierPID = RunningAppRaw.CarrierPID, StartTickTime = RunningAppRaw.StartTickTime, SerialId = RunningAppRaw.SerialId, Processes = ArrayToList(RunningAppRaw.Processes, RunningAppRaw.TotalPIDs) }; ((List<RunningApp>)Data).Add(runningApp); Dbg("EnumRunningAppsCallback: out"); return true; }