Class: TestSteps::Handlers::ListAllDropdownValues
- Defined in:
- lib/functions/handlers/list_all_dropdowns_values.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 |
# File 'lib/functions/handlers/list_all_dropdowns_values.rb', line 8 def perform(step_attributes) dropdown = step_attributes[:testvalue] locate = step_attributes[:locate] Browser.b.element(:"#{locate}" => dropdown).wait_until Browser.b.select_list(:"#{locate}" => dropdown)..each do |i| MyLog.log.info("List of dropdown for #{dropdown} are: #{i.text}") return true end rescue StandardError MyLog.log.warn("List dropdown: #{dropdown} does not exist") false end |