Skip to content

Image not saved ??!! #11

Description

@imspikey

Hello
when I run this script hello.js from:

var page = require('webpage').create();
page.open('http://example.com', function(status) {
console.log("Status: " + status);
if(status === "success") {
page.render('example.png');
}
phantom.exit();
});

example.png is not saved to disk??!!!

hello.js is at: F:\Projects\web\phantomtest
phantomsjs is at: C:\Users\imspikey\Desktop\phantomjs-2.1.1-windows\bin

lunsh.js file:

{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "phantomjs",
"request": "launch",
"file": "${workspaceRoot}/phantomtest/hello.js",
"webRoot": "${workspaceRoot}/phantomtest",
"runtimeExecutable": "C://Users//imspikey//Desktop//phantomjs-2.1.1-windows//bin//phantomjs.exe",
"runtimeArgs": [],
"sourceMaps": false
}
]
}

When I run this code from the phantomjs directory it works but when I run it from the plugin
I get the "Status: success" message but no example.png ?!
any help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions