public void AddProductToCart(string product, string catalogOption) { var catalogPageObject = new CatalogPageObject(); catalogPageObject.AddProductToCart(product); switch (catalogOption.ToString()) { case "continueshopping": catalogPageObject.ContinueShopping(); break; case "gotocart": catalogPageObject.GoToCart(); break; default: catalogPageObject.ContinueShopping(); break; } }
public bool isCategoryShown(string category) { var catalogPageObject = new CatalogPageObject(); return(catalogPageObject.isCategoryShown(category)); }
public double[] GetProductPrices() { var catalogPageObject = new CatalogPageObject(); return(catalogPageObject.GetProductPrices()); }
public string GetLowerPriceRange() { var catalogPageObject = new CatalogPageObject(); return(catalogPageObject.GetLowerPriceRange()); }
public void SetLowerPriceRange(string lower) { var catalogPageObject = new CatalogPageObject(); catalogPageObject.SetLowerPriceRange(lower); }
public void SetUpperPriceRange(string upper) { var catalogPageObject = new CatalogPageObject(); catalogPageObject.SetUpperPriceRange(upper); }
public int GetCurrentProductCount() { var catalogPageObject = new CatalogPageObject(); return(catalogPageObject.CurrentProductCount()); }