Пример #1
0
        public void ShouldGoToTheObjectiveCategoryPage()
        {
            //Precondition
            GoToTheHotlinePageFromGoogleSearch();
            var hotlineHomePage  = new HotlineHomePage(WebDriver);
            var changeToLanguage = hotlineHomePage.ChangeLanguage();

            if (changeToLanguage != "uk")
            {
                hotlineHomePage.ChangeLanguage();
            }
            hotlineHomePage.GoToTheObjectiveCategoryPage();
            //Assert
            Assert.True(WebDriver.Title.Contains("Об'єктиви"));
        }
Пример #2
0
        public void ShouldChangeLanguageInHotlinePage()
        {
            //Precondition
            GoToTheHotlinePageFromGoogleSearch();
            var hotlineHomePage  = new HotlineHomePage(WebDriver);
            var changeToLanguage = hotlineHomePage.ChangeLanguage();

            //Assertion
            if (changeToLanguage == "uk")
            {
                Assert.True(WebDriver.Title.Contains("України"));
            }
            else
            {
                Assert.True(WebDriver.Title.Contains("Украины"));
            }
        }
Пример #3
0
        public void ShouldFilterObjectiveCategoryByCostAndSystemCanon()
        {
            //Precondition
            GoToTheHotlinePageFromGoogleSearch();
            var hotlineHomePage  = new HotlineHomePage(WebDriver);
            var changeToLanguage = hotlineHomePage.ChangeLanguage();

            if (changeToLanguage != "uk")
            {
                hotlineHomePage.ChangeLanguage();
            }
            hotlineHomePage.GoToTheObjectiveCategoryPage();
            var hotlineObjectivePage = new HotlineObjectivePage(WebDriver);
            //hotlineObjectivePage.FilteByCanonSystem();
            var costFilterValue = hotlineObjectivePage.FilteByToCost(10000);

            //Assert
            Assert.True(WebDriver.Title.Contains("Об'єктиви"));
            Assert.AreEqual(costFilterValue, 10000.ToString());
        }