Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Entrypoint
- {
- IWebDriver driver = new ChromeDriver();
- **driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(20);**
- driver.Navigate().GoToUrl("https://r1.netrevelation.com:8443/mcba-cms/pages/flight-transfer.cab");
- driver.Manage().Window.Maximize();
- driver.FindElement(By.Id("loginlink")).Click();
- driver.FindElement(By.Id("headerSubView:inputUserName:input")).SendKeys("st001");
- driver.FindElement(By.Id("headerSubView:inputPassword:input")).SendKeys("hello321" + Keys.Enter);
- driver.FindElement(By.Id("dateOfFlight:input")).Click();**//This Step does not get Executed , it throws exception element not found.**
- driver.FindElement(By.Id("ui-datepicker-div")).Click();
- driver.FindElement(By.XPath(".//*[@id='ui-datepicker-div']/div/a[2]/span")).Click();
- driver.FindElement(By.LinkText("28")).Click();
- IWebElement Flightno = driver.FindElement(By.Id("selectedFlight:input"));
- Flightno.SendKeys("BA901" + Keys.Enter);
- IWebElement Flighttick = driver.FindElement(By.Id("flightTickImg"));
- driver.Quit();
Add Comment
Please, Sign In to add comment