示例#1
0
        public void FillFormAndTakeScreenShot(Dictionary <string, string> infoToFill, string generatedText)
        {
            QuestionToBBCPage questionToBBC = new QuestionToBBCPage(driver);

            questionToBBC.FillInForm(infoToFill, generatedText);

            questionToBBC.TakeScreenShot(driver);
        }
示例#2
0
        public void FillFormAndPressSubmitButton(Dictionary <string, string> infoToFill, string generatedText)
        {
            QuestionToBBCPage questionToBBC = new QuestionToBBCPage(driver);

            questionToBBC.FillInForm(infoToFill, generatedText);

            questionToBBC.PressSubmitButton();
            Assert.IsTrue(questionToBBC.IsDisplayedErrorMessage());
            Assert.AreEqual(infoToFill["Error message"], questionToBBC.GetErrorMessageText());
        }