smparkes / capybara-envjs

Capybara driver for envjs gem
http://github.com/smparkes/capybara-envjs
130 stars 10 forks source link

EnvJS encountering "unmatched ) in regular expression" in jQuery #41

Closed btelles closed 14 years ago

btelles commented 14 years ago

Hi there,

I'm using jQuery with capybara-envjs, and ended up importing it directly into the page. Unfortunately I keep getting an error as follows:

ERROR [ ... ] {ENVJS} unmatched ) in regular expression

Immediately before the error, cucumber spits out the entire script, which is odd, and evaluating each script (i.e. the jquery library) takes about 30 seconds.

Has anyone else encountered this? If so, do you know what could be going on wrong?

smparkes commented 14 years ago

Doesn't sound familiar.

btelles commented 14 years ago

Hmmm...I added <![CDATA[ AND ]]> and it appears to work now...still having trouble getting all the stuff to work though ....feel free to delete this ticket. Thanks for the quick response.

smparkes commented 14 years ago

Thanks.

env.js does tend to have issues with the current version of jQuery, I'm afraid.