Sha256: 05f1ea4120d80352036d866a4f9a1e389a6eac40f98673132502c961ddc60113

Contents?: true

Size: 443 Bytes

Versions: 108

Compression:

Stored size: 443 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

108 entries across 106 versions & 12 rubygems

Version Path
kt-paperclip-5.4.0 features/support/selectors.rb
kt-paperclip-4.4.0 features/support/selectors.rb
paperclip_database-3.1.0 features/support/selectors.rb
paperclip_database-3.0.0 features/support/selectors.rb
paperclip_database-2.4.0 features/support/selectors.rb
utf8_enforcer_workaround-1.2.1 features/support/selectors.rb
utf8_enforcer_workaround-1.2.0 features/support/selectors.rb
paperclip-6.1.0 features/support/selectors.rb
paperclip-6.0.0 features/support/selectors.rb
paperclip-5.3.0 features/support/selectors.rb
paperclip-5.2.1 features/support/selectors.rb
paperclip-5.2.0 features/support/selectors.rb
activerecord-tablefree-3.0.1 features/support/selectors.rb
activerecord-tablefree-3.0.0 features/support/selectors.rb
activerecord-tableless-2.0.0 features/support/selectors.rb
activerecord-tableless-2.0.0.pre.2 features/support/selectors.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paperclip-5.1.0/features/support/selectors.rb
paperclip-5.1.0 features/support/selectors.rb
paperclip-5.0.0 features/support/selectors.rb
paperclip-4.3.7 features/support/selectors.rb