phantomJS


SUBMITTED BY: chanhtin

DATE: Dec. 9, 2015, 2:02 a.m.

FORMAT: Text only

SIZE: 241 Bytes

HITS: 1283

  1. var phantomJS = new PhantomJS();
  2. phantomJS.OutputReceived += (sender, e) => {
  3. Console.WriteLine("PhantomJS output: {0}", e.Data);
  4. };
  5. phantomJS.RunScript("for (var i=0; i<10; i++) console.log('hello from js '+i); phantom.exit();", null);

comments powered by Disqus