public void SendMultiChoose() { multiCityLink.Click(); var buttonInputToCollections = new IWebElement[2]; var inputToCollections = new IWebElement[2]; var buttonInputFromCollections = new IWebElement[2]; var inputFromCollections = new IWebElement[2]; var tableDate = new IWebElement[2]; string[] airports = new string[] { "msq", "vko", "ecn" }; int i = 0; foreach (var p in ButtonInputFromCollection) { buttonInputToCollections[i] = p; i++; } i = 0; foreach (var p in InputFromCollection) { buttonInputToCollections[i] = p; i++; } i = 0; foreach (var p in ButtonInputToColection) { buttonInputToCollections[i] = p; i++; } i = 0; foreach (var p in InputToCollection) { buttonInputToCollections[i] = p; i++; } i = 0; foreach (var p in MultiDate) { buttonInputToCollections[i] = p; i++; } for (int i = 0; i < 2; i++) { buttonInputFromCollections[i].Click(); inputFromCollections[i].SendKeys(airports[i]); buttonInputToCollections[i].Click(); inputToCollections[i].SendKeys(airports[i + 1]); tableDate[i].Click(); ButtonSubmitDate.Click(); } MultiCitySearch.Click(); }
public void SelectDateForThirdTest() { wait.Until(ExpectedConditions.ElementIsVisible(Date)).Click(); ButtonSubmitDate.Click(); }
public void SelectDateForSecondTest() { wait.Until(ExpectedConditions.ElementIsVisible(DatePlus3Days)).Click(); ButtonSubmitDate.Click(); }