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("Об'єктиви")); }
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("Украины")); } }
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()); }