Beispiel #1
0
        public QuestionPage AnswerYes()
        {
            if (!_driver.FindElements(By.Id("Yes")).Any())
            {
                throw new Exception("No answer with id 'Yes' could be found for question " + Header.Text);
            }

            AnswerYesButton.Click();
            NextButton.Click();
            AwaitNextQuestionPage();
            return(new QuestionPage(_driver));
        }
Beispiel #2
0
        public QuestionPage AnswerYes()
        {
            if (!Driver.FindElements(By.CssSelector("[for='Yes']")).Any())
            {
                throw new Exception("No answer with label for 'Yes' could be found for question " + Header.Text);
            }

            AnswerYesButton.Click();
            NextButton.Click();
            AwaitNextQuestionPage();
            return(new QuestionPage(Driver));
        }