Sha256: 9baf71cb024c40429dfef3b0cf8c885a7e3407e904035920d491643ce438035f

Contents?: true

Size: 413 Bytes

Versions: 28

Compression:

Stored size: 413 Bytes

Contents

# details are here http://carol-nichols.com/2011/07/seleniumwebdrivererrorunhandlederror-ns_error_illegal_value/
class Capybara::Selenium::Driver
  def find(selector)
    browser.find_elements(:xpath, selector).map { |node| Capybara::Selenium::Node.new(self, node) }
  rescue Selenium::WebDriver::Error::InvalidSelectorError => e
    e.message =~ /nsIDOMXPathEvaluator.createNSResolver/ ? retry : raise
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rest-assured-0.2.0.rc5 features/support/selenium-fix.rb
rest-assured-0.2.0.rc4 features/support/selenium-fix.rb
rest-assured-0.2.0.rc3 features/support/selenium-fix.rb
rest-assured-0.2.0.rc2 features/support/selenium-fix.rb
rest-assured-0.2.0.rc1 features/support/selenium-fix.rb
rest-assured-0.1.4 features/support/selenium-fix.rb
rest-assured-0.1.3 features/support/selenium-fix.rb
rest-assured-0.1.2 features/support/selenium-fix.rb