Sha256: e07ef49766fff41aa962e36f654fcfd0e5dd6bc6f4d97dcb40f7da8a1a0ddd46

Contents?: true

Size: 224 Bytes

Versions: 16

Compression:

Stored size: 224 Bytes

Contents

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

16 entries across 16 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.rc10 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.rc9 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.rc8 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.rc7 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.rc6 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.rc5 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.rc4 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.rc3 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.rc1 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.beta12 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.beta11 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.beta10 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.beta9 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.beta8 spec/support/capybara_helper.rb
renalware-core-2.0.0.pre.beta7 spec/support/capybara_helper.rb