We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var phridge = require("phridge"); var path = require("path"); var jqueryPath = path.resolve(__dirname, "jquery-1.6.1.min.js");
phridge.spawn() .then(function (phantom) { return phantom.openPage("http://localhost:3000/"); }) .then(function (page) { page.injectJs(jqueryPath); return page.run(function () { return this.evaluate(function () { return $("button").innerText; }); }); })
gives an error: TypeError: page.injectJs is not a function
The text was updated successfully, but these errors were encountered:
No branches or pull requests
var phridge = require("phridge");
var path = require("path");
var jqueryPath = path.resolve(__dirname, "jquery-1.6.1.min.js");
phridge.spawn()
.then(function (phantom) {
return phantom.openPage("http://localhost:3000/");
})
.then(function (page) {
page.injectJs(jqueryPath);
return page.run(function () {
return this.evaluate(function () {
return $("button").innerText;
});
});
})
gives an error: TypeError: page.injectJs is not a function
The text was updated successfully, but these errors were encountered: