public void PostReply(string message) { IWebElement element = SeleniumBase.IsElementExists(By.TagName(DataReader.GetLocator("commenttextarea"))); SeleniumBase.NavigateTo(By.TagName(DataReader.GetLocator("commenttextarea"))); SeleniumBase.SendKeys(element, message, "PostReply"); }
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; } } } }