示例#1
0
        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));
            }
        }
示例#2
0
        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"));
            }
        }
示例#3
0
        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));
        }