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.108 spec/support/capybara_helper.rb
renalware-core-2.0.106 spec/support/capybara_helper.rb
renalware-core-2.0.105 spec/support/capybara_helper.rb
renalware-core-2.0.104 spec/support/capybara_helper.rb
renalware-core-2.0.103 spec/support/capybara_helper.rb
renalware-core-2.0.102 spec/support/capybara_helper.rb
renalware-core-2.0.101 spec/support/capybara_helper.rb
renalware-core-2.0.100 spec/support/capybara_helper.rb
renalware-core-2.0.99 spec/support/capybara_helper.rb
renalware-core-2.0.98 spec/support/capybara_helper.rb
renalware-core-2.0.97 spec/support/capybara_helper.rb
renalware-core-2.0.96 spec/support/capybara_helper.rb
renalware-core-2.0.95 spec/support/capybara_helper.rb
renalware-core-2.0.94 spec/support/capybara_helper.rb
renalware-core-2.0.93 spec/support/capybara_helper.rb
renalware-core-2.0.92 spec/support/capybara_helper.rb
renalware-core-2.0.91 spec/support/capybara_helper.rb
renalware-core-2.0.90 spec/support/capybara_helper.rb
renalware-core-2.0.89 spec/support/capybara_helper.rb
renalware-core-2.0.88 spec/support/capybara_helper.rb