public void BeforeEachTest() { app = AppInitializer.StartApp(platform); app.Screenshot("App Initialized"); FirstPage = new FirstPage(app, platform); ListViewPage = new ListViewPage(app, platform); }
public void BeforeEachTest () { app = AppInitializer.StartApp (platform); app.Screenshot("App Initialized"); FirstPage = new FirstPage(app, platform); ListViewPage = new ListViewPage(app, platform); }
virtual public void BeforeEachTest() { app = AppInitializer.StartApp(platform); app.Screenshot("App Initialized"); FirstPage = new FirstPage(app, platform); ListViewPage = new ListViewPage(app, platform); LoginPage = new LoginPage(app, platform); NewUserSignUpPage = new NewUserSignUpPage(app, platform); }
public void SelectItemOnListViewByID() { var listItemNumber = 9; var expectedAlertString = $"You Selected Number {listItemNumber}"; FirstPage.ClickListViewButtonByID(); ListViewPage.TapListItemNumber(listItemNumber); Assert.AreEqual(expectedAlertString, ListViewPage.GetAlertText(listItemNumber)); }
public void SelectItemOnListView() { //Arrange var listItemNumber = 9; var expectedAlertString = $"You Selected Number {listItemNumber}"; //Act BackdoorMethodHelpers.OpenListViewPage(app); ListViewPage.TapListItemNumber(listItemNumber); //Assert Assert.AreEqual(expectedAlertString, ListViewPage.GetAlertText(listItemNumber)); }
public void SelectItemOnListView() { //Arrange var listItemNumber = 9; var expectedAlertString = $"You Selected Number {listItemNumber}"; //Act if (app is iOSApp) { app.Invoke("openListViewPage:", ""); } else { app.Invoke("OpenListViewPage"); } app.Screenshot("Backdoor to List View Page"); ListViewPage.TapListItemNumber(listItemNumber); //Assert Assert.AreEqual(expectedAlertString, ListViewPage.GetAlertText(listItemNumber)); }