James Roe
Post reply
More message actions

9/16/11

Other recipients:

I made a plugin for you called liveView, for PyPhantomJS. Please

remember it only works in master (1.3.dev).

You may find the plugin here.

http://dev.umaclan.com/projects/pyphantomjs/wiki/Plugins#LiveView

How to use:

To enable: page.liveView.show()

To disable: page.liveView.close()

Please also remember:

- The size of the dialog will only ever be as big as your

viewportSize. So if you to see more, make your viewportSize bigger.

- Also, there is no scrolling, as this behaves exactly as PyPhantomJS

would while in headless mode. There is a scrolling feature in the API

if you need to scroll.

- Lastly, this plugin was only made to see what was going on, and not

to control the web browser from your GUI window; as such, doing that

type of stuff is disabled. This plugin was only made to see what's

going on behind the scenes.

- show quoted text -

On Sep 15, 11:20am, Blake Scholl <bsch...@gmail.com> wrote:

> Hey All,

>

> I'm attempting to debug some issues with my PhantomJS script, and it would

> be really helpful to be able to see what's going on on the page--not just as

> screencaps, but in realtime.

>

> Is there a way to pop open a browser window? Not something interactive, but

> just a realtime rendering of the page driven by PJS? I'm happy to hack the

> code to enable this, but could use a few pointers on how to go about it.

>

> Cheers & thanks,

> --Blake

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。