Пример #1
0
        public void VerifyRowDeletion()
        {
            HomePage      homePage          = new HomePage(driverManager.driver);
            LoginPage     loginPage         = homePage.clickLoginButton();
            DashboardPage dashboardpage     = loginPage.Login("*****@*****.**", "admin");
            GigsPage      gigsPage          = dashboardpage.ClickGigsTab();
            string        firstExpiredRowId = gigsPage.ReturnId();
            DetailsPage   detailsPage       = gigsPage.ClickEyeButton();

            NUnit.Framework.Assert.IsTrue(detailsPage.IsExpiredPresent());
            GigsPage gigsPage2 = detailsPage.ClickDeleteButton();

            NUnit.Framework.Assert.IsTrue(gigsPage2.IsIdAbsent(firstExpiredRowId));
        }
Пример #2
0
 private void SetMainPage()
 {
     if (!string.IsNullOrEmpty(Preferences.Get("accessToken", "")))
     {
         MainPage = new GigsPage();
     }
     else if (!string.IsNullOrEmpty(Preferences.Get("username", "")) &&
              !string.IsNullOrEmpty(Preferences.Get("password", "")))
     {
         MainPage = new NavigationPage(new LoginPage());
     }
     else
     {
         MainPage = new NavigationPage(new RegisterPage());
     }
 }