public void Test01() { LoginPage loginPage = new LoginPage(driver); loginPage.LoginField(); loginPage.PasswordField(); loginPage.LoginButtonClick(); Thread.Sleep(3000); //driver.Manage().Timeouts().ImplicitlWait(TimeSpan.FromSeconds(5)); MenuPage menuPage = new MenuPage(); menuPage.FlightSearchLink(); FlightSearchPage flightSearchPage = new FlightSearchPage(); //var flightSearchLink = driver.FindElement(By.Id("flightSearchLink")); //flightSearchLink.Click(); //var fromAirportField = driver.FindElement(By.Id("from-airport")); //fromAirportField.Click(); //fromAirportField.SendKeys("LGW" + Keys.Tab); //var toAirportField = driver.FindElement(By.Id("to-airport")); //toAirportField.Click(); //toAirportField.SendKeys("AMS" + Keys.Tab); //var fromDateField = driver.FindElement(By.Id("from-date")); //fromDateField.Click(); //var noOfAdult = driver.FindElement(By.Id("adults-a")); //noOfAdult.Click(); //noOfAdult.SendKeys("3" + Keys.Tab); //var searchButton = driver.FindElement(By.Id("flight-search-button")); //searchButton.Click(); //Thread.Sleep(TimeSpan.FromSeconds(5)); //var OKButton = driver.FindElement(By.CssSelector("#erorr-modal-type-3 button[class$='btn-accept']")); //OKButton.Click(); }