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.130 spec/support/capybara_helper.rb
renalware-core-2.0.129 spec/support/capybara_helper.rb
renalware-core-2.0.128 spec/support/capybara_helper.rb
renalware-core-2.0.127 spec/support/capybara_helper.rb
renalware-core-2.0.126 spec/support/capybara_helper.rb
renalware-core-2.0.125 spec/support/capybara_helper.rb
renalware-core-2.0.124 spec/support/capybara_helper.rb
renalware-core-2.0.123 spec/support/capybara_helper.rb
renalware-core-2.0.121 spec/support/capybara_helper.rb
renalware-core-2.0.120 spec/support/capybara_helper.rb
renalware-core-2.0.119 spec/support/capybara_helper.rb
renalware-core-2.0.118 spec/support/capybara_helper.rb
renalware-core-2.0.117 spec/support/capybara_helper.rb
renalware-core-2.0.116 spec/support/capybara_helper.rb
renalware-core-2.0.115 spec/support/capybara_helper.rb
renalware-core-2.0.113 spec/support/capybara_helper.rb
renalware-core-2.0.112 spec/support/capybara_helper.rb
renalware-core-2.0.111 spec/support/capybara_helper.rb
renalware-core-2.0.110 spec/support/capybara_helper.rb
renalware-core-2.0.109 spec/support/capybara_helper.rb