Sha256: 8b97a1ad24d03126490e0dac96a59eaecaaac6872915c6993e1931b72bfaaa97
Contents?: true
Size: 651 Bytes
Versions: 3
Compression:
Stored size: 651 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 "([^"]+)" accordion section/ [:xpath, Bermuda::XPath.accordion_content($1)] when /the "([^"]+)" dialog/ [:xpath, Bermuda::XPath.dialog($1)] when /the "([^"]+)" tab/ [:xpath, Bermuda::XPath.tab_content($1)] 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bermuda-0.0.4 | features/support/selectors.rb |
bermuda-0.0.3 | features/support/selectors.rb |
bermuda-0.0.2 | features/support/selectors.rb |