require 'capybara' require 'capybara/dsl' module TokenInputHelper include Capybara::DSL # EX: fill_in_token_input 'custodian_id', with: 'M', pick: 'Market' # EX: fill_in_token_input 'custodian_id', with: 'A', pick: 1 # # @param id [String] id of the original text input that has been replaced by the tokenInput # @option with [String] *required # @option pick [Symbol, String, Integer] result to pick, defaults to first result # def fill_in_token_input(id, options) # Generate selectors for key elements # The tokenInput-generated visible text field text_input_selector = "#token-input-#{id}" # The