예제 #1
0
        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));
        }
예제 #3
0
        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));
        }