public void createNewOtherTR(string rcValue) { MainPage mainPage = new MainPage(webDriver); WDEx.click(webDriver, mainPage.New); Thread.Sleep(WDEx.delayAvg); mainPage.SwitchToIFrame(webDriver, "contentIFrame1"); Thread.Sleep(WDEx.delaySml); RecordLocLbl.Click(); RecordLoc.SendKeys(rcValue); webDriver.SwitchTo().DefaultContent(); WDEx.click(webDriver, mainPage.Save); Thread.Sleep(WDEx.delaySml); }
public void addTravelGuest(List <string> travelGuest) { MainPage mainPage = new MainPage(webDriver); Thread.Sleep(WDEx.delaySml); mainPage.SwitchToIFrame(webDriver, "contentIFrame1"); for (int i = 0; i < travelGuest.Count; i++) { RecordLocLbl.Click(); AddGuest.Click(); GuestId.SendKeys(travelGuest[i]); GuestId.SendKeys(Keys.Enter); GuestIdValueSelect.Click(); } webDriver.SwitchTo().DefaultContent(); }
public void addTravelSegment(List <List <string> > travelSegment) { MainPage mainPage = new MainPage(webDriver); for (int i = 0; i < travelSegment.Count; i++) { mainPage.SwitchToIFrame(webDriver, "contentIFrame1"); RecordLocLbl.Click(); mainPage.SwitchToIFrame(webDriver, "IFRAME_TravelSegments"); Company.Clear(); Company.SendKeys(travelSegment[i][0]); selectTravelMode(Convert.ToInt32(travelSegment[i][1])); Number.Clear(); Number.SendKeys(travelSegment[i][2]); DepartDate.Clear(); setDate(travelSegment[i][3], DepartDate); Depart.Clear(); Depart.SendKeys(travelSegment[i][4]); DepartTime.SendKeys(travelSegment[i][5]); setDate(travelSegment[i][6], ArrivalDate); Arrival.SendKeys(travelSegment[i][7]); ArrivalTime.SendKeys(travelSegment[i][8]); webDriver.SwitchTo().DefaultContent(); WDEx.click(webDriver, mainPage.Save); Thread.Sleep(WDEx.delaySml); } }