private void setAnswerChoices(CreateQuestionParameters createQuestionParameters) { for (String choice : createQuestionParameters.getChoicesAsStrings()) { selenium.type("currentQuestion.currentChoice", choice); selenium.keyUp("id=currentQuestion.currentChoice", " "); selenium.click("_eventId_addChoice"); waitForPageToLoad(); } }