Ejemplo n.º 1
0
        public void FeedbackVerifyDropdownOptions()
        {
            FeedbackPage feedbackPage = new FeedbackPage(driver);

            feedbackPage.ClickContactLink();
            feedbackPage.ClickShareYourThoughtsLink();
            Assert.IsTrue(driver.Url.Contains("feedback"), "This is not the Feedback page");
            string[] dropList = { "",                         "LostPropertyFeedback", "BusFeedback",           "SkyTrainFeedback",        "SeaBusFeedback",
                                  "WestCoastExpressFeedback", "HandyDARTFeedback",    "HandyDARTTaxiFeedback", "WebAndTechnicalFeedback", "OtherFeedback" };
            feedbackPage.VerifyAllDropdownOptions(dropList);
        }
Ejemplo n.º 2
0
        public void FeedbackLink()
        {
            FeedbackPage feedbackPage = new FeedbackPage(driver);

            feedbackPage.ClickContactLink();
            //feedbackPage.GoToFeedbackLink();
            feedbackPage.ClickShareYourThoughtsLink();
            Assert.IsTrue(driver.Url.Contains("feedback"), "This is not the Feedback page");

            //Verify Page Descriptions
            Assert.IsTrue(driver.FindElement(By.TagName("body")).Text.Contains(feedbackPage.feedbackDescription), feedbackPage.feedbackDescriptFailMsg);
            Assert.IsTrue(driver.FindElement(By.TagName("body")).Text.Contains(feedbackPage.dropDownTitle), feedbackPage.dropDownTitleFailMsg);
        }