public void ClickCancel() { SeleniumBase.NavigateTo(By.CssSelector(DataReader.GetLocator("cancelElement"))); System.Threading.Thread.Sleep(4000); IWebElement element = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("cancelElement"))); SeleniumBase.Click(element, "boking duration"); }
public void ClickToddlerBootcampAmenity() { IWebElement toddlerBootcampAmenity = SeleniumBase.IsElementExists(By.CssSelector(DataReader.GetLocator("toddlerBootcampAmenity"))); if (null != toddlerBootcampAmenity) { SeleniumBase.NavigateTo(By.CssSelector(DataReader.GetLocator("toddlerBootcampAmenity"))); SeleniumBase.Click(toddlerBootcampAmenity, "ClickToddlerBootcampAmenity menu"); } }
public void SelectAmenity(string amenityName) { IWebElement element = SeleniumBase.IsElementExists(By.CssSelector(DataReader.GetLocator("amenitiesList"))); if (null != element) { ReadOnlyCollection <IWebElement> elements = element.FindElements(By.TagName("a")); foreach (IWebElement option in elements) { if (option.Text.Contains(amenityName)) { SeleniumBase.NavigateTo(option); SeleniumBase.Click(option, "Click Amenity link"); break; } } } }
public void ClickHelpdeskMenu() { IWebElement element = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("helpDeskMenu"))); SeleniumBase.Click(element, "Click help desk"); }
public void ClickComment() { IWebElement bookStartTimeOption = SeleniumBase.IsElementVisible(By.XPath(DataReader.GetLocator("commentButton"))); SeleniumBase.Click(bookStartTimeOption, "book start time"); }
public void ClickBooking() { IWebElement element = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("bookingItem"))); SeleniumBase.Click(element, "ClickBooking"); }
public void ClickNext() { IWebElement nextButton = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("nextButtonElement"))); SeleniumBase.Click(nextButton, "Click next"); }
public void ClickSubmitRequestButton() { IWebElement submitRequestButtonElement = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("submitRequestButton"))); SeleniumBase.Click(submitRequestButtonElement, "click submit"); }
public void ClickBookingNextButton() { IWebElement bookingNextButtonElement = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("bookingNextButton"))); SeleniumBase.Click(bookingNextButtonElement, "click next"); }
public void ClickBookingDuration() { IWebElement bookDurationOption = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("bookDuration"))); SeleniumBase.Click(bookDurationOption, "boking duration"); }
public void ClickBookStart() { IWebElement bookStartTimeOption = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("bookStartTime"))); SeleniumBase.Click(bookStartTimeOption, "book start time"); }
public void ClickRequestABooking() { IWebElement bookStartTimeButton = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("requestaBookingButtonElement"))); SeleniumBase.Click(bookStartTimeButton, "ClickRequestABooking"); }
public void ClickAmenities() { IWebElement amenities = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("amenities"))); SeleniumBase.Click(amenities, "amenities menu"); }
public void SignOut() { IWebElement element = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("signout"))); SeleniumBase.Click(element, "sign out"); }
public void ClickMenu() { IWebElement mainmenu = SeleniumBase.IsElementVisible(By.XPath(DataReader.GetLocator("mainmenu"))); SeleniumBase.Click(mainmenu, "main menu"); }