コード例 #1
0
        public void ThenISeeTheThankyouMessageAs(string message)
        {
            var contactUsFormPage = new ContactUsFormPage();
            Assert.IsTrue(FindElement(contactUsFormPage.ThankYouMessageLocator).Text.ToLower().Contains(message.ToLower()));

        }
コード例 #2
0
 public void GivenITickTheDisclaimerCheckbox()
 {
     var contactUsFormPage = new ContactUsFormPage();
     FindElement(contactUsFormPage.DisclaimerCheckBox).Click();
 }
コード例 #3
0
 public void WhenIClickTheSubmitButtonForTheForm()
 {
      var contactUsFormPage = new ContactUsFormPage();
     FindElement(contactUsFormPage.SubmitContactUsFromButton).Click();
 }
コード例 #4
0
 public void GivenISetTheQueryAs(string queryType)
 {
      var contactUsFormPage = new ContactUsFormPage();
     contactUsFormPage.SetQueryTypeOnContactUsForm(queryType);
 }
コード例 #5
0
 public void GivenIPopulateTheQuestionAs(string question)
 {
      var contactUsFormPage = new ContactUsFormPage();
     FindElement(contactUsFormPage.QuestionLocator).SendKeys(question);
 }
コード例 #6
0
 public void GivenISetTheRegionTo(string region)
 {
     var contactUsFormPage = new ContactUsFormPage();
     contactUsFormPage.SetRegionOnContactUsForm(region);
 }
コード例 #7
0
 public void GivenISetTheProfessionAs(string profession)
 {
      var contactUsFormPage = new ContactUsFormPage();
     contactUsFormPage.SetProfessionOnContactUsForm(profession);
 }
コード例 #8
0
 public void GivenIPopulateTheTelefoneNumberAs(string telefone)
 {
      var contactUsFormPage = new ContactUsFormPage();
     FindElement(contactUsFormPage.TelefoneLocator).SendKeys(telefone);
 }
コード例 #9
0
 public void GivenIPopulateTheEmailAs(string email)
 {
     var contactUsFormPage = new ContactUsFormPage();
     FindElement(contactUsFormPage.EmailLocator).SendKeys(email);
 }
コード例 #10
0
 public void GivenIPopulateTheFullNameAs(string fullName)
 {
     var contactUsFormPage = new ContactUsFormPage();
     FindElement(contactUsFormPage.FullNameLocator).SendKeys(fullName);
 }