How to load web pages in REPL mode?

288 views
Skip to first unread message

Gunnar Schulze

unread,
Apr 25, 2012, 12:06:25 PM4/25/12
to phantomjs
Hi!

I am desperately trying to load a webpage using the interactive mode
of phantomjs.
What I did was the following:

phantomjs> var page = new WebPage();
undefined
phantomjs> page.open('http://www.google.com');
undefined
phantomjs> page.content
"<html><head></head><body></body></html>"
phantomjs>

Is this supposed to work?


Gunnar

Danny Wang

unread,
Apr 27, 2012, 7:12:19 AM4/27/12
to phan...@googlegroups.com
i met the same problem.

btw, this line works in node.js REPL mode, but it doesn't in phantom's
REPL mode:

setTimeout(function() { console.log(1); }, 1000);

Ivan De Marino

unread,
Apr 27, 2012, 10:53:16 AM4/27/12
to phan...@googlegroups.com
I think you need to file an issue there: I think something is broken in the way I did the eval :(
--
Ivan De Marino
Coder, Technologist, Cook, Italian

blog.ivandemarino.me | www.linkedin.com/in/ivandemarino | twitter.com/detronizator
Reply all
Reply to author
Forward
0 new messages