public WaitingPage BookThisFlight(BasePage bp) { Thread.Sleep(2000); WebElementHelper.WaitAndClick(Driver, By.XPath(flexWindowXPath)); WebElementHelper.WaitAndSendKeys(Driver, By.XPath(cvvXPath), cvv); WebElementHelper.WaitAndClick(Driver, By.XPath(bookThisFlightButtonXPath)); return(new WaitingPage(bp)); }
public MainPage SignIn(BasePage bp, string username, string password) { WebElementHelper.WaitAndClick(Driver, By.XPath(signInButtonXPath)); WebElementHelper.WaitAndSendKeys(Driver, By.XPath(userNameXpath), username); WebElementHelper.WaitAndSendKeys(Driver, By.XPath(userPassLocator), password); WebElementHelper.WaitAndClick(Driver, By.XPath(loginInButtonXpath)); return(new MainPage(bp)); }
public MainPage LogiIn(IWebDriver driver) { driver.Navigate().GoToUrl(baseUrl); WebElementHelper.WaitAndClick(driver, By.XPath(singInLinkXPath)); WebElementHelper.WaitAndSendKeys(driver, By.XPath(loginInputXPath), login); WebElementHelper.WaitAndSendKeys(driver, By.XPath(passInputXPath), pass); WebElementHelper.WaitAndClick(driver, By.XPath(singInButtonXPath)); return(new MainPage(driver)); }
public WaitingPage BookThisFlight(BasePage bp) { //there is popup window on page, i can not disable it or change driver focus to web page from popup window Thread.Sleep(2000); WebElementHelper.WaitAndClick(Driver, By.XPath(flexWindowXPath)); Thread.Sleep(2000); WebElementHelper.WaitAndSendKeys(Driver, By.XPath(cvvXPath), cvv); Thread.Sleep(2000); WebElementHelper.WaitAndClick(Driver, By.XPath(bookThisFlightButtonXPath)); return(new WaitingPage(bp)); }