浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

PhantomJS in non-headless mode - Google Groups

James Roe
Post reply


More message actions 

 


 

9/16/11

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 -
posted on 2012-05-07 18:04  lexus  阅读(389)  评论(0)    收藏  举报