Beispiel #1
0
        public ChangePasswordPage GoToChangePasswordPage(string Email, string loginpassword)
        {
            LoginPageMethods login = new LoginPageMethods();

            login.LogIntoAccount(Email, loginpassword);
            MyAccountPage account = new MyAccountPage();

            account.ClickLinkChangePassword();
            return(new ChangePasswordPage());
        }
Beispiel #2
0
        public EditAccountPage GoToEditAccountPage(string Email, string password)
        {
            LoginPageMethods login = new LoginPageMethods();

            login.GoToLoginPage();
            login.FillingUserNamePassword(Email, password);
            MyAccountPage page = new MyAccountPage();

            page.ClickLinkEditAccount();
            return(new EditAccountPage());
        }
Beispiel #3
0
        public MyAccountPage ValidChangePassword(string password, string passwordConfirm, string Email, string loginpassword)
        {
            LoginPageMethods login = new LoginPageMethods();

            login.LogIntoAccount(Email, loginpassword);
            MyAccountPage account = new MyAccountPage();

            account.ClickLinkChangePassword();
            FillingNewPasswords(password, passwordConfirm);
            return(new MyAccountPage());
        }
Beispiel #4
0
        public string AddProductByNameUseSearchWithLofinedUser(string nameProduck, string email, string password)
        {
            LoginPageMethods login = new LoginPageMethods();

            login.LogIntoAccount(email, password);
            ShopingCartPage shopingCartPage = new ShopingCartPage();
            SearchMethods   search          = new SearchMethods();
            TopBar          topBar          = new TopBar();
            var             product         = search.Search(nameProduck);

            product.AddAppropriateItemToCart(nameProduck);
            //Thread.Sleep(1000);
            topBar.ShoppingCartButtonClick();
            return(shopingCartPage.GetProduct().GetProductName());
        }