Created
October 7, 2016 19:09
-
-
Save twalpole/80c08b52fdc60326fafb93171d71d4c8 to your computer and use it in GitHub Desktop.
test issue with capybara/selenium-webdriver/jruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "capybara" | |
html = DATA.read | |
app = proc { |env| [200, { "Content-Type" => "text/html" }, [html] ] } | |
sess = Capybara::Session.new(:selenium, app) | |
sess.visit("/") | |
#This throws the error | |
sess.first(:css, '.item').text | |
__END__ | |
<!doctype html> | |
<html lang="en"> | |
<body> | |
<div class="item"> | |
My Item | |
</div> | |
<div class="item"> | |
My Other Item | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment