Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Windows: Unable to render file, no errors #13693

Closed
staffanselander opened this issue Oct 28, 2015 · 4 comments
Closed

Windows: Unable to render file, no errors #13693

staffanselander opened this issue Oct 28, 2015 · 4 comments

Comments

@staffanselander
Copy link

Command

PS C:\Users\StaffanSelander\Desktop\Projects> phantomjs .\main.js

main.js

var page        = require('webpage').create();
var url         = 'http://github.com';

page.open(url, function(status) {

    console.log(status);
    var e = page.render('example.png');
    console.log(e);

    setTimeout(function() {
        phantom.exit();
    }, 5000);
});

Output

success
true   

But no file have been created?

@zackw
Copy link
Collaborator

zackw commented Nov 3, 2015

What version of PhantomJS are you using? If you are on 1.x please try 2.0.

@staffanselander
Copy link
Author

I'm using version 2.0.0

@denghuiquan
Copy link

it need to setTimeout for the page full loading before page render.

@stale stale bot added the stale label Dec 26, 2019
@stale
Copy link

stale bot commented Dec 29, 2019

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants