Esempio n. 1
0
        public void InnerTearDown()
        {
            WishListEmptyPage wishListEmptyPage = wishListMessagePage
                                                  .RemoveLastItemFromWishList(productToCart);

            wishListEmptyPage.OpenCartButton()
            .RemoveProduct(productToCart);
            AccountLogoutPage accountLogoutPage = wishListEmptyPage
                                                  .Logout();
        }
Esempio n. 2
0
 public void SetUp()
 {
     drive = new Driver();
     drive.SetUpChromeDriver();
     startPage         = new StartPage();
     loginPage         = new LoginPage();
     user              = new User1();
     homePage          = new HomePage();
     accountPage       = new AccountPage();
     accountLogoutPage = new AccountLogoutPage();
 }
Esempio n. 3
0
        public void CheckValidRegistering(IUser user)
        {
            SuccessfullyRegisterPage SucRegPage = LoadApplication().GotoRegisterPage().successfullyRegisterUser(user);

            // Check
            Assert.IsTrue(SucRegPage.GetExpectedSuccessMessage().Equals(SucRegPage.Expected_Success_Message));

            //Step
            AccountLogoutPage accountLogoutPage = SucRegPage.LogOut();

            //Check
            // Assert.IsTrue(AccountLogoutPage.GetActualAccountLogoutMessage()
            //          .Equals(accountLogoutPage.Expected_Account_Message));
            //  DataBaseUtils db = new DataBaseUtils();

            Thread.Sleep(5000);
        }
Esempio n. 4
0
 public void InnerTearDown()
 {
     AccountLogoutPage accountLogoutPage = wishListMessageEmptyPage
                                           .Logout();
 }
Esempio n. 5
0
 public void InnerTearDown()
 {
     wishListPage.RemoveLastItemFromWishList(productToAdd);
     AccountLogoutPage accountLogoutPage = wishListPage
                                           .Logout();
 }