Exemplo n.º 1
0
 public void LoginUser(string email, string password)
 {
     DriverHelper.Click(Locators.Button.CSS_loginButton);
     DriverHelper.SetText(Locators.Text.CSS_emailLogin, email);
     DriverHelper.SetText(Locators.Text.CSS_passLogin, password);
     DriverHelper.Click(Locators.Button.CSS_SignInButton);
 }
Exemplo n.º 2
0
        public void AddToCart(int index)
        {
            var selector = $"//ul[contains(@class,'product_list grid row homefeatured')] /li[{ index}]";

            DriverHelper.MouseOver(By.XPath(selector + "//a[@class='product_img_link']"));
            DriverHelper.Click(By.XPath(selector + "//a[@title='Add to cart']"));
            //mouse over
            //ul[@class="product_list grid row"] /li[2] //a[@class="product_img_link"]
            //hacer click
            //ul[@class="product_list grid row"] /li[2] //a[@title="Add to cart"]
        }
Exemplo n.º 3
0
 public void GoToHome()
 {
     DriverHelper.Click(By.CssSelector("#header_logo a"));
 }
Exemplo n.º 4
0
 public void TermsAndServicesCheck()
 {
     DriverHelper.Click(By.CssSelector("p.checkbox span"));
 }
Exemplo n.º 5
0
 public void ShippingCheckout()
 {
     DriverHelper.Click(By.CssSelector("button[name='processCarrier']"));
 }
Exemplo n.º 6
0
 public void AddressCheckout()
 {
     DriverHelper.Click(By.CssSelector("button[name='processAddress']"));
 }
Exemplo n.º 7
0
 public void SummaryCheckout()
 {
     DriverHelper.Click(By.CssSelector(".cart_navigation a[title='Proceed to checkout']"));
 }
Exemplo n.º 8
0
 public void PurchaseCheckout()
 {
     DriverHelper.Click(By.CssSelector(".button-container a[title='Proceed to checkout'] span"));
 }