ReferenceError: Can’t find variable: jQuery with Poltergeist/Capybara

If jQuery is on the page you most likely have to use an evaluate function to enter the context of the page. CasperJS has this diagram http://docs.casperjs.org/en/latest/_images/evaluate-diagram.png
http://phantomjs.org/api/webpage/method/evaluate.html

The execution is sandboxed, the web page has no access to the phantom
object and it can’t probe its own setting.

Leave a Comment

tech