riocampos

loadConnectDirectory.js

Jul 25th, 2013
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var page = require('webpage').create();
  2. page.open(
  3.   'code.html',
  4.   function () {
  5.     console.log(
  6.       page.evaluate(
  7.         function () {
  8.           return document.getElementsByTagName('body')[0]
  9.           .textContent;
  10.         }
  11.       )
  12.     );
  13.     phantom.exit();
  14.   }
  15. );
Advertisement
Add Comment
Please, Sign In to add comment