Beispiel #1
0
        public void WaitForEmailFields(string address, string subject, string expectedTestBody)
        {
            //Verify the draft addressee is still the same
            Assert.AreEqual(address, sentEmailAdressLbl.GetText(), "Email is not actual");

            //Verify the draft subject is still the same
            Assert.AreEqual(subject, subjectField.GetAttribute("value"), "Subject is not actual");

            //Verify the draft body text is still the same
            Browser.GetDriver().SwitchTo().Frame(this.bodyTextFrame.GetElement());
            Assert.IsTrue(sentEmailBodyTextLbl.GetText().Contains(expectedTestBody), "Body text is not as expected");
            Browser.GetDriver().SwitchTo().DefaultContent();
        }