Exemple #1
0
        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");
        }
Exemple #2
0
        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");
        }
Exemple #3
0
        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");
            }
        }
Exemple #4
0
        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;
                    }
                }
            }
        }