Skip to content

Instantly share code, notes, and snippets.

@joliss
Created January 4, 2012 16:52
Show Gist options
  • Save joliss/1560935 to your computer and use it in GitHub Desktop.
Save joliss/1560935 to your computer and use it in GitHub Desktop.
"docElement is null" failures
1) Capybara::Session with selenium driver it should behave like session it should behave like within#within with CSS selector should accept additional options
Failure/Error: @session.body.should include('Bar')
docElement is null
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/driver-component.js -> file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/firefoxDriver.js:297:in `unknown'
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/command_processor.js:9942:in `unknown'
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/command_processor.js:9947:in `unknown'
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/command_processor.js:9898:in `unknown'
# ./lib/capybara/selenium/driver.rb:40:in `source'
# ./lib/capybara/session.rb:109:in `source'
# ./lib/capybara/spec/session/within_spec.rb:26:in `block (4 levels) in <top (required)>'
2) Capybara::Session with selenium driver it should behave like session it should behave like within#within with XPath selector should click links in the given scope
Failure/Error: @session.body.should include('Bar')
docElement is null
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/driver-component.js -> file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/firefoxDriver.js:297:in `unknown'
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/command_processor.js:9942:in `unknown'
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/command_processor.js:9947:in `unknown'
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/command_processor.js:9898:in `unknown'
# ./lib/capybara/selenium/driver.rb:40:in `source'
# ./lib/capybara/session.rb:109:in `source'
# ./lib/capybara/spec/session/within_spec.rb:35:in `block (4 levels) in <top (required)>'
3) Capybara::Session with selenium driver it should behave like session it should behave like within#within with the default selector should use XPath
Failure/Error: @session.body.should include('Bar')
docElement is null
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/driver-component.js -> file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/firefoxDriver.js:297:in `unknown'
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/command_processor.js:9942:in `unknown'
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/command_processor.js:9947:in `unknown'
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/command_processor.js:9898:in `unknown'
# ./lib/capybara/selenium/driver.rb:40:in `source'
# ./lib/capybara/session.rb:109:in `source'
# ./lib/capybara/spec/session/within_spec.rb:44:in `block (4 levels) in <top (required)>'
4) Capybara::Session with selenium driver it should behave like session it should behave like within#within with Node rather than selector should click links in the given scope
Failure/Error: @session.body.should include('Bar')
docElement is null
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/driver-component.js -> file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/firefoxDriver.js:297:in `unknown'
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/command_processor.js:9942:in `unknown'
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/command_processor.js:9947:in `unknown'
# [remote server] file:///tmp/webdriver-profile20120104-9414-13b1vry/extensions/[email protected]/components/command_processor.js:9898:in `unknown'
# ./lib/capybara/selenium/driver.rb:40:in `source'
# ./lib/capybara/session.rb:109:in `source'
# ./lib/capybara/spec/session/within_spec.rb:55:in `block (4 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment