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); }
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); }