public void CountTheElementsWithFreeShippingTest() { var searchText = "FREE shipping"; EtsyMensShoesPage etsyMensShoesPage = new EtsyMensShoesPage(driver); CustomWaits customWaits = new CustomWaits(); var texts = etsyMensShoesPage.freeShipping; foreach (var textItem in texts) { Console.WriteLine(textItem.Text); Assert.True(textItem.Text.Contains(searchText)); } }
public void CheckSalePrice() { EtsyMensShoesPage etsyMensShoesPage = new EtsyMensShoesPage(driver); CustomWaits customWaits = new CustomWaits(); etsyMensShoesPage.checkBoxSale.Click(); customWaits.SetImplicitWaitTimeout(driver, 5); var saleText = etsyMensShoesPage.salePrice; foreach (var textItem in saleText) { Console.WriteLine(textItem.Text); Assert.AreEqual("rgba(46, 133, 57, 1)", textItem.GetCssValue("color")); } }
public void CheckCangeCarrency() { var searchText = "Price (PLN)"; EtsyMensShoesPage etsyMensShoesPage = new EtsyMensShoesPage(driver); CustomWaits customWaits = new CustomWaits(); etsyMensShoesPage.searchArea.popupChangeRegionLanguageCarrency.Click(); PopupUpdateSettings popupUpdateSettings = new PopupUpdateSettings(driver); popupUpdateSettings.currencyDropDown.Click(); customWaits.SetImplicitWaitTimeout(driver, 5); popupUpdateSettings.currencyPLN.Click(); customWaits.SetImplicitWaitTimeout(driver, 5); popupUpdateSettings.saveButton.Click(); customWaits.SetImplicitWaitTimeout(driver, 5); var texts = etsyMensShoesPage.checkPrice.Text; Assert.True(texts.Contains(searchText)); }