public void WhenUserSubmitsTheForm() { Utilities ut = new Utilities(Driver); ContactUpPage cup = new ContactUpPage(Driver); ut.ClickOnElement(cup.sendBtn); }
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"); }
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); }