Sha256: 3a32dc93e3ed46ae5a94856851a466dcc0070372f849ad5eb6b615e64110085b

Contents?: true

Size: 447 Bytes

Versions: 9

Compression:

Stored size: 447 Bytes

Contents

module HtmlSelectorsHelpers
  # Maps a name to a selector. Used primarily by the
  #
  #   When /^(.+) within (.+)$/ do |step, scope|
  #
  # step definitions in web_steps.rb
  #
  def selector_for(locator)
    case locator
    when 'the page'
      'html > body'
    else
      raise "Can't find mapping from \"#{locator}\" to a selector.\n" \
            "Now, go and add a mapping in #{__FILE__}"
    end
  end
end

World(HtmlSelectorsHelpers)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
activerecord-tablefree-3.1.8 features/support/selectors.rb
activerecord-tablefree-3.1.7 features/support/selectors.rb
activerecord-tablefree-3.1.6 features/support/selectors.rb
activerecord-tablefree-3.1.5 features/support/selectors.rb
activerecord-tablefree-3.1.4 features/support/selectors.rb
activerecord-tablefree-3.1.3 features/support/selectors.rb
activerecord-tablefree-3.1.2 features/support/selectors.rb
activerecord-tablefree-3.1.1 features/support/selectors.rb
activerecord-tablefree-3.1.0 features/support/selectors.rb