public void TEST_3()
        {
            driver.Navigate().GoToUrl(UrlHotline);
            HotlineMain pageHotlineMain     = new HotlineMain(driver);
            Obektivy    pageHotlineObektivy = pageHotlineMain.SelectObektivySubCategory();

            NUnit.Framework.Assert.AreEqual(pageHotlineObektivy.driver.Url, "http://hotline.ua/av/obektivy/");
        }
        public void TEST_2_uk()
        {
            driver.Navigate().GoToUrl(UrlHotline);
            HotlineMain pageHotlineMain = new HotlineMain(driver);

            pageHotlineMain.ChangeLanguage(HotlineBase.Languages.uk);

            NUnit.Framework.Assert.AreEqual(pageHotlineMain.FindUppercase().Text, "КАТАЛОГ ТОВАРІВ");
        }
        public void TEST_1()
        {
            driver.Navigate().GoToUrl("https://google.com.ua");
            Google pageGoogle = new Google(driver);

            pageGoogle.TypeSearchInput(UrlHotline);
            HotlineMain pageHotlineMain = new HotlineMain(pageGoogle.FeelingLuckyClick());

            NUnit.Framework.Assert.AreEqual(pageHotlineMain.driver.Url, UrlHotline);
        }
        public void TEST_5_DESC()
        {
            driver.Navigate().GoToUrl(UrlHotline);
            HotlineMain pageHotlineMain      = new HotlineMain(driver);
            Snoubordy   pageHotlineSnoubordy = pageHotlineMain.SelectSnoubordySubCategory();

            pageHotlineSnoubordy.SortProductslistByPrice(PageBase.SortOrder.DESC);
            var ListOfPrice = pageHotlineSnoubordy.ListOfPrice();

            NUnit.Framework.Assert.AreEqual(ListOfPrice, pageHotlineSnoubordy.SortList(ListOfPrice, PageBase.SortOrder.DESC));
        }
        public void TEST_4()
        {
            double MinPrice = 0;
            double MaxPrice = 10000;

            driver.Navigate().GoToUrl(UrlHotline);
            HotlineMain pageHotlineMain     = new HotlineMain(driver);
            Obektivy    pageHotlineObektivy = pageHotlineMain.SelectObektivySubCategory();

            pageHotlineObektivy.SortProductslistByPrice(PageBase.SortOrder.ASC);
            pageHotlineObektivy.ClickFullCader();
            pageHotlineObektivy.TypeMinPrice(MinPrice);
            pageHotlineObektivy.TypeMaxPrice(MaxPrice);
            pageHotlineObektivy.ClickPriceFilterSubmit();

            pageHotlineObektivy.CompareAGreaterThanB(pageHotlineObektivy.GetMinPrice(), MinPrice, PageBase.Equality.Nostrict);
            pageHotlineObektivy.CompareAGreaterThanB(MaxPrice, pageHotlineObektivy.GetMaxPrice(), PageBase.Equality.Nostrict);
        }