travist / jquery.go.js

An easy-to-use web testing and automation tool that uses the jQuery interface within Node.js to interact with the Phantom.js browser.
MIT License
150 stars 35 forks source link

phantom crash: code -1073741819 #4

Closed kl3ryk closed 10 years ago

kl3ryk commented 10 years ago

Got this error when execute following code:

var $ = require('jquerygo');
$.config.addJQuery = false;

$.visit("https://alstom.taleo.net/careersection/4/moresearch.ftl", function(){
    console.log('foo');
});

The problem seems to exeists only on this (https://alstom.taleo.net/careersection/4/moresearch.ftl) site.

When $.config.addJQuery is set to true everything works fine.

travist commented 10 years ago

This is by design... I noticed that the page does not already have jQuery on that page, so you need to set $.config.addJQuery = true; in order for this library to work as designed.