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.0.pre.rc13 spec/support/capybara_helper.rb