Skip to content

Instantly share code, notes, and snippets.

@javigomez
Created November 23, 2017 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javigomez/954f8642798fb02bbc236f793e33cb14 to your computer and use it in GitHub Desktop.
Save javigomez/954f8642798fb02bbc236f793e33cb14 to your computer and use it in GitHub Desktop.
multiple choice page object
#file: features/support/pages/multiple_choice_block.rb
module MultipleChoiceBlock
include PageObject
divs(:choice_list, css: '.is-focused .stkv-qa-choice')
sections(:block_list, class: 'stkv-qa-block')
def commit_answer
self.choice_list_elements[selected_choice_id].click
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment