コード例 #1
0
        public void WhenUserSubmitsTheForm()
        {
            Utilities     ut  = new Utilities(Driver);
            ContactUpPage cup = new ContactUpPage(Driver);

            ut.ClickOnElement(cup.sendBtn);
        }
コード例 #2
0
        public void ThenMessageIsPresentedToTheUser(string alertMsg)
        {
            Utilities     ut  = new Utilities(Driver);
            ContactUpPage cup = new ContactUpPage(Driver);

            Assert.That(ut.ReturnTextFromElement(cup.successMessage), Is.EqualTo(alertMsg), "Message was not sent to customer service");
        }
コード例 #3
0
        public void GivenFillsInAllRequiredFieldsWithHeadingAndMessage(string heading, string message)
        {
            Utilities     ut  = new Utilities(Driver);
            ContactUpPage cup = new ContactUpPage(Driver);

            ut.DropdownSelect(cup.subjectHeading, heading);
            ut.EnterTextElement(cup.contactEmail, ut.GeneraterandomEmail());
            ut.EnterTextElement(cup.message, message);
        }