public void StartSearchWithoutParameters() { Browser = new ChromeDriver(); Browser.Manage().Window.Maximize(); Browser.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(60); Browser.Navigate().GoToUrl(URL_Site); MainPage mainPage = new MainPage(Browser); mainPage.AutoSelectParameters_V2(); mainPage.ClickButtonFind(); ListFoundCars listFound = new ListFoundCars(Browser); Assert.AreEqual("Минск (Все места)", listFound.correctInfo.Text); Browser.Quit(); }
public void ListCarsFromSelectedProvider() { Browser = new ChromeDriver(); Browser.Manage().Window.Maximize(); Browser.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(60); Browser.Navigate().GoToUrl(URL_Site); MainPage mainPage = new MainPage(Browser); mainPage.AutoSelectParameters_V1(); mainPage.ClickButtonFind(); ListFoundCars listFound = new ListFoundCars(Browser); listFound.AutoSelectProvider(); TimeSpan.FromSeconds(2); Assert.AreEqual(listFound.selectNameProvider.Text, "Avis"); Browser.Quit(); }