node-phantomjs-sync icon indicating copy to clipboard operation
node-phantomjs-sync copied to clipboard

support of page.close()

Open ecLAllanon opened this issue 10 years ago • 0 comments

please add support of page.close() now it just hangs on close()

sync(
  function () {
    ph = phantom.create();
    page = ph.createPage();
    status = page.open("http://www.google.com");
    console.log("status="+status);
    title = page.evaluate(function () { return document.title; });
    console.log("title="+title);
    page.close();
    console.log("Page closed.");
    ph.exit();
  }
);

ecLAllanon avatar Mar 10 '15 19:03 ecLAllanon