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)); }