Google Groups

Re: How to load web pages in REPL mode?


Ivan De Marino Apr 27, 2012 7:53 AM
Posted in group: phantomjs
I think you need to file an issue there: I think something is broken in the way I did the eval :(

On 27 April 2012 12:12, Danny Wang <wangya...@gmail.com> wrote:
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);


On Thu, Apr 26, 2012 at 12:06 AM, Gunnar Schulze
<gunnar....@gmail.com> wrote:
> 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



--
Ivan De Marino
Coder, Technologist, Cook, Italian

blog.ivandemarino.me | www.linkedin.com/in/ivandemarino | twitter.com/detronizator