Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def answerQuestions(numQuestions, numAnswers, sectionName) {
- for(int i = 0; i < numQuestions; i++) {
- log.info(" ${bookingcode}t"+sectionName+": "+ i)
- //I need to select the 1st option for 1 st question instead random
- def index = rand.nextInt(numAnswers)
- doThink()
- waitFor {
- cover.displayed == false
- mcQuestions*.displayed
- clickHammer(mcQuestions[index])
- mcQuestions[index].value() != null
- nextButton.displayed
- }
- nextButton.click()
- }
- }
Add Comment
Please, Sign In to add comment