Skip to content

Instantly share code, notes, and snippets.

@heypiotr
Created December 3, 2012 09:04
Show Gist options
  • Select an option

  • Save heypiotr/4193752 to your computer and use it in GitHub Desktop.

Select an option

Save heypiotr/4193752 to your computer and use it in GitHub Desktop.
SyntaxError: (RegexpError) incompatible character encoding: /[\s\u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000]+/
/Users/kme/.rvm/gems/jruby-1.7.0@cr_orderflow/gems/capybara-2.0.1/lib/capybara/helpers.rb:17:in `normalize_whitespace'
/Users/kme/.rvm/gems/jruby-1.7.0@cr_orderflow/gems/capybara-2.0.1/lib/capybara/selenium/node.rb:4:in `text'
/Users/kme/.rvm/gems/jruby-1.7.0@cr_orderflow/gems/capybara-2.0.1/lib/capybara/node/element.rb:48:in `text'
/Users/kme/.rvm/gems/jruby-1.7.0@cr_orderflow/gems/capybara-2.0.1/lib/capybara/node/base.rb:77:in `synchronize'
/Users/kme/.rvm/gems/jruby-1.7.0@cr_orderflow/gems/capybara-2.0.1/lib/capybara/node/element.rb:48:in `text'
/Users/kme/.rvm/gems/jruby-1.7.0@cr_orderflow/gems/capybara-2.0.1/lib/capybara/node/document.rb:21:in `text'
/Users/kme/.rvm/gems/jruby-1.7.0@cr_orderflow/gems/capybara-2.0.1/lib/capybara/node/matchers.rb:204:in `has_text?'
/Users/kme/.rvm/gems/jruby-1.7.0@cr_orderflow/gems/capybara-2.0.1/lib/capybara/node/base.rb:77:in `synchronize'
/Users/kme/.rvm/gems/jruby-1.7.0@cr_orderflow/gems/capybara-2.0.1/lib/capybara/node/matchers.rb:203:in `has_text?'
org/jruby/RubyBasicObject.java:1673:in `__send__'
org/jruby/RubyKernel.java:2081:in `send'
/Users/kme/.rvm/gems/jruby-1.7.0@cr_orderflow/gems/capybara-2.0.1/lib/capybara/session.rb:338:in `has_text?'
/Users/kme/.rvm/gems/jruby-1.7.0@cr_orderflow/gems/capybara-2.0.1/lib/capybara/rspec/matchers.rb:42:in `matches?'
/Users/kme/.rvm/gems/jruby-1.7.0@cr_orderflow/gems/rspec-expectations-2.12.0/lib/rspec/expectations/handler.rb:23:in `handle_matcher'
/Users/kme/.rvm/gems/jruby-1.7.0@cr_orderflow/gems/rspec-expectations-2.12.0/lib/rspec/expectations/expectation_target.rb:34:in `to'
/Users/kme/Documents/Development/cr_orderflow/spec/features/cart_spec.rb:51:in `(root)'
@dmtroyer
Copy link

dmtroyer commented Dec 4, 2012

I am getting the same error when using xpath selectors with Capybara and the Selenium driver. Let me know if you figure anything out, it is driving me crazy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment