You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2023. It is now read-only.
Which version of PhantomJS are you using? Tip: run phantomjs --version.
2.1.1
What steps will reproduce the problem?
screenshot.js:
var page = require('webpage').create();
var url = 'http://blackmad.github.io/stellabot/web/jaspers_dilemma.html';
page.open(url, function() {
page.render('github.png');
phantom.exit();
})
Did you use binary PhantomJS or did you compile it from source? source
Please provide any additional information below.
The page loads fine in chrome. I've tried making it more valid html (Didn't help) and changing from document.ready to window.load, didn't help either.
draw_everything is defined in jaspers_dilemma.js, I don't know why it's not getting loaded
The text was updated successfully, but these errors were encountered:
phantomjs --version
.2.1.1
screenshot.js:
var page = require('webpage').create();
var url = 'http://blackmad.github.io/stellabot/web/jaspers_dilemma.html';
page.open(url, function() {
page.render('github.png');
phantom.exit();
})
output:
[dblackman@tw-mbp-dblackman py_screenshot_server (master)]$ phantomjs screenshot.js
ReferenceError: Can't find variable: draw_everything
http://blackmad.github.io/stellabot/web/common.js:25 in resize_canvas
http://blackmad.github.io/stellabot/web/common.js:49
http://blackmad.github.io/stellabot/web/third_party/jquery.min.js:2 in i
http://blackmad.github.io/stellabot/web/third_party/jquery.min.js:2 in fireWith
http://blackmad.github.io/stellabot/web/third_party/jquery.min.js:2 in ready
http://blackmad.github.io/stellabot/web/third_party/jquery.min.js:2 in J
ReferenceError: Can't find variable: draw_everything
http://blackmad.github.io/stellabot/web/common.js:25 in resize_canvas
http://blackmad.github.io/stellabot/web/third_party/jquery.min.js:3 in dispatch
http://blackmad.github.io/stellabot/web/third_party/jquery.min.js:3 in handle
:0 in render
phantomjs://code/screenshot.js:4
phantomjs://platform/webpage.js:286 in _onPageOpenFinished
ReferenceError: Can't find variable: draw_everything
http://blackmad.github.io/stellabot/web/common.js:25 in resize_canvas
http://blackmad.github.io/stellabot/web/third_party/jquery.min.js:3 in dispatch
http://blackmad.github.io/stellabot/web/third_party/jquery.min.js:3 in handle
:0 in render
phantomjs://code/screenshot.js:4
phantomjs://platform/webpage.js:286 in _onPageOpenFinished
The page loads fine in chrome. I've tried making it more valid html (Didn't help) and changing from document.ready to window.load, didn't help either.
draw_everything is defined in jaspers_dilemma.js, I don't know why it's not getting loaded
The text was updated successfully, but these errors were encountered: