Ejemplo n.º 1
0
 public void LandingPage_TestContactUs_WS_1151()
 {
     if (!DataParser.ReturnExecution("WS_1048"))
     {
         Assert.Ignore();
     }
     else
     {
         ContactUs contactUsPage = InitialPage.Go().ClickContactUs();
         Assert.IsTrue(contactUsPage.Is1stNameTxtAvl(), "The label is not correct");
         Assert.IsTrue(contactUsPage.IsLastNameTxtAvl(), "The label is not correct");
         Assert.IsTrue(contactUsPage.IsEmailTxtAvl(), "email field is not available");
         Assert.AreEqual("Access - Password", contactUsPage.GetInquiryOpts(0), "Option is not correct");
         Assert.AreEqual("Access - Username", contactUsPage.GetInquiryOpts(1), "Option is not correct");
         Assert.AreEqual("Access - Non Registered User", contactUsPage.GetInquiryOpts(2), "Option is not correct");
         Assert.AreEqual("Access - Email Address", contactUsPage.GetInquiryOpts(3), "Option is not correct");
         Assert.AreEqual("Gift Certificate - Balance", contactUsPage.GetInquiryOpts(4), "Option is not correct");
         Assert.AreEqual("Gift Certificate - Add Value", contactUsPage.GetInquiryOpts(5), "Option is not correct");
         Assert.AreEqual("Gift Certificate - History", contactUsPage.GetInquiryOpts(6), "Option is not correct");
         Assert.AreEqual("Gift Certificate - Activation Status", contactUsPage.GetInquiryOpts(7),
                         "Option is not correct");
         Assert.AreEqual("Gift Certificate - Order Status", contactUsPage.GetInquiryOpts(8),
                         "Option is not correct");
         for (int i = 4; i < 9; i++)
         {
             contactUsPage.SelectInquiryOption(contactUsPage.GetInquiryOpts(i));
             Assert.IsTrue(contactUsPage.IsOrderIDAvl(), "Order id field is not available");
             Assert.IsTrue(contactUsPage.IsYearAvl(), "Order id field is not available");
             Assert.IsTrue(contactUsPage.IsMonthIDAvl(), "Order id field is not available");
             Assert.IsTrue(contactUsPage.IsDayAvl(), "Order id field is not available");
         }
         Assert.AreEqual("Other", contactUsPage.GetInquiryOpts(9), "Option is not correct");
         Assert.IsTrue(contactUsPage.IsMsgInquiryAvl(), "continue button is not available");
         Assert.AreEqual("SUBMIT", contactUsPage.GetSubmitBtnTxt(), "The label is not correct");
     }
 }