Created
November 23, 2017 16:11
-
-
Save javigomez/954f8642798fb02bbc236f793e33cb14 to your computer and use it in GitHub Desktop.
multiple choice page object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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