Class: TestSteps::Handlers::WriteToEditor
- Defined in:
- lib/functions/handlers/write_to_editor.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 20 21 22 23 24 |
# File 'lib/functions/handlers/write_to_editor.rb', line 9 def perform(step_attributes) iframe = step_attributes[:testvalue] value = step_attributes[:testvalue2] locate = step_attributes[:locate] Browser.b.iframe(:"#{locate}" => iframe).wait_until_present Browser.b.iframe(:"#{locate}" => iframe).send_keys value Report.results.puts("Editor box: #{iframe} has correct value: #{value}") true rescue StandardError Report.results.puts("Editor box: #{iframe} has wrong value: #{value}") false rescue StandardError Report.results.puts("Editor box: #{iframe} does not exist") false end |