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); }
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"] }
public void GoToHome() { DriverHelper.Click(By.CssSelector("#header_logo a")); }
public void TermsAndServicesCheck() { DriverHelper.Click(By.CssSelector("p.checkbox span")); }
public void ShippingCheckout() { DriverHelper.Click(By.CssSelector("button[name='processCarrier']")); }
public void AddressCheckout() { DriverHelper.Click(By.CssSelector("button[name='processAddress']")); }
public void SummaryCheckout() { DriverHelper.Click(By.CssSelector(".cart_navigation a[title='Proceed to checkout']")); }
public void PurchaseCheckout() { DriverHelper.Click(By.CssSelector(".button-container a[title='Proceed to checkout'] span")); }