Exemple #1
0
 public void SelectDestinationCity2AndDepartDate2(string dest, string date)
 {
     wait.Until(ExpectedConditions.ElementToBeClickable(FlyingFrom1));
     FlyingFrom1.Click();
     FlyingTo2.Click();
     FlyingTo2.SendKeys(dest);
     wait.Until(ExpectedConditions.ElementIsVisible(By.XPath(SearchConstant.city1dest)));
     City1Dest.Click();
     wait.Until(ExpectedConditions.ElementToBeClickable(DepartDate2));
     DepartDate2.Click();
     DepartDate2.SendKeys(date);
 }
Exemple #2
0
 public void SelectSourceCity1AndDestinationCity1AndDepartDate1(string source, string dest, string date)
 {
     wait.Until(ExpectedConditions.ElementToBeClickable(FlyingFrom1));
     FlyingFrom1.Click();
     FlyingFrom1.SendKeys(source);
     wait.Until(ExpectedConditions.ElementIsVisible(By.XPath(SearchConstant.city1source)));
     City1Source.Click();
     wait.Until(ExpectedConditions.ElementIsVisible(By.XPath(SearchConstant.flyingTo1)));
     FlyingTo1.Click();
     FlyingTo1.SendKeys(dest);
     wait.Until(ExpectedConditions.ElementIsVisible(By.XPath(SearchConstant.city1dest)));
     City1Dest.Click();
     wait.Until(ExpectedConditions.ElementToBeClickable(DepartDate1));
     DepartDate1.Click();
     DepartDate1.SendKeys(date);
 }