Class: TestSteps::Handlers::RadioButton
- Defined in:
- lib/functions/handlers/radio_button.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
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/functions/handlers/radio_button.rb', line 8 def perform(step_attributes) radio = step_attributes[:testvalue] value2 = step_attributes[:testvalue2] locate = step_attributes[:locate] locate2 = step_attributes[:locate2] Browser.b.radio("#{locate}": radio).wait_until(&:exists?) Browser.b.radio("#{locate}": radio, "#{locate2}": value2.to_s).set MyLog.log.info("Radio button: #{radio} has been selected") true rescue StandardError MyLog.log.warn("Radio button: #{radio} does not exist") false end |