Class: TestSteps::Handlers::CheckBox
- Defined in:
- lib/functions/handlers/check_box.rb
Instance Method Summary collapse
Methods inherited from Base
#login_button, #login_check, #login_process, #mem_word_check, #open_url_process, perform, #portal_mem_word, register
Instance Method Details
#perform(step_attributes) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/functions/handlers/check_box.rb', line 9 def perform(step_attributes) checkbox = step_attributes[:testvalue] locate = step_attributes[:locate] Browser.b.checkbox(:"#{locate}" => checkbox).wait_until_present.click Report.results.puts("Check box: #{checkbox} has been selected") true rescue StandardError Report.results.puts("Check box: #{checkbox} does not exist") false end |