Exemplo n.º 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());
        }
Exemplo n.º 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());
        }
Exemplo n.º 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());
        }
Exemplo n.º 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());
        }