示例#1
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");
        }
示例#2
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");
            }
        }
示例#3
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;
                    }
                }
            }
        }
示例#4
0
        public void ClickHelpdeskMenu()
        {
            IWebElement element = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("helpDeskMenu")));

            SeleniumBase.Click(element, "Click help desk");
        }
示例#5
0
        public void ClickComment()
        {
            IWebElement bookStartTimeOption = SeleniumBase.IsElementVisible(By.XPath(DataReader.GetLocator("commentButton")));

            SeleniumBase.Click(bookStartTimeOption, "book start time");
        }
示例#6
0
        public void ClickBooking()
        {
            IWebElement element = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("bookingItem")));

            SeleniumBase.Click(element, "ClickBooking");
        }
示例#7
0
        public void ClickNext()
        {
            IWebElement nextButton = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("nextButtonElement")));

            SeleniumBase.Click(nextButton, "Click next");
        }
示例#8
0
        public void ClickSubmitRequestButton()
        {
            IWebElement submitRequestButtonElement = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("submitRequestButton")));

            SeleniumBase.Click(submitRequestButtonElement, "click submit");
        }
示例#9
0
        public void ClickBookingNextButton()
        {
            IWebElement bookingNextButtonElement = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("bookingNextButton")));

            SeleniumBase.Click(bookingNextButtonElement, "click next");
        }
示例#10
0
        public void ClickBookingDuration()
        {
            IWebElement bookDurationOption = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("bookDuration")));

            SeleniumBase.Click(bookDurationOption, "boking duration");
        }
示例#11
0
        public void ClickBookStart()
        {
            IWebElement bookStartTimeOption = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("bookStartTime")));

            SeleniumBase.Click(bookStartTimeOption, "book start time");
        }
示例#12
0
        public void ClickRequestABooking()
        {
            IWebElement bookStartTimeButton = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("requestaBookingButtonElement")));

            SeleniumBase.Click(bookStartTimeButton, "ClickRequestABooking");
        }
示例#13
0
        public void ClickAmenities()
        {
            IWebElement amenities = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("amenities")));

            SeleniumBase.Click(amenities, "amenities menu");
        }
示例#14
0
        public void SignOut()
        {
            IWebElement element = SeleniumBase.IsElementVisible(By.CssSelector(DataReader.GetLocator("signout")));

            SeleniumBase.Click(element, "sign out");
        }
示例#15
0
        public void ClickMenu()
        {
            IWebElement mainmenu = SeleniumBase.IsElementVisible(By.XPath(DataReader.GetLocator("mainmenu")));

            SeleniumBase.Click(mainmenu, "main menu");
        }