예제 #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());
        }