Sha256: 99310dcad38cdd3b90abf71c899b5f0cc106c830c677b5d6346d89038a2d40c8

Contents?: true

Size: 255 Bytes

Versions: 121

Compression:

Stored size: 255 Bytes

Contents

# frozen_string_literal: true

module CapybaraHelper
  def select_nth_option_from(selector, number = 1)
    all("#{selector} option")[number - 1].select_option
  end

  def select_first_option_from(selector)
    select_nth_option_from(selector)
  end
end

Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
renalware-core-2.0.87 spec/support/capybara_helper.rb
renalware-core-2.0.86 spec/support/capybara_helper.rb
renalware-core-2.0.85 spec/support/capybara_helper.rb
renalware-core-2.0.84 spec/support/capybara_helper.rb
renalware-core-2.0.83 spec/support/capybara_helper.rb
renalware-core-2.0.82 spec/support/capybara_helper.rb
renalware-core-2.0.81 spec/support/capybara_helper.rb
renalware-core-2.0.80 spec/support/capybara_helper.rb
renalware-core-2.0.79 spec/support/capybara_helper.rb
renalware-core-2.0.78 spec/support/capybara_helper.rb
renalware-core-2.0.77 spec/support/capybara_helper.rb
renalware-core-2.0.76 spec/support/capybara_helper.rb
renalware-core-2.0.75 spec/support/capybara_helper.rb
renalware-core-2.0.74 spec/support/capybara_helper.rb
renalware-core-2.0.73 spec/support/capybara_helper.rb
renalware-core-2.0.72 spec/support/capybara_helper.rb
renalware-core-2.0.71 spec/support/capybara_helper.rb
renalware-core-2.0.70 spec/support/capybara_helper.rb
renalware-core-2.0.69 spec/support/capybara_helper.rb
renalware-core-2.0.68 spec/support/capybara_helper.rb