PhantomJS in non-headless mode - Google Groups
2012-05-07 18:04
423 查看
PhantomJS in non-headless mode - Google Groups
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:20 am, 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
James Roe | ![]() Post reply ![]() 9/16/11 |
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:20 am, 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
相关文章推荐
- non-virtual thunk for Virtual Function in multiple inheritance
- Fortran 程序编译时错误 Error: Non-numeric character in statement label at (1)
- Cannot make a static reference to the non-static method setInAnimation(Animation) from the type View
- OCSSD.BIN Process is Running in a Non-RAC Environment
- [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated c
- The app references non-public selectors in payload With Xcode6.1
- Non-communicative multi-robot coordination in dynamic environments(一)
- Java异常:Exception in thread "main" java.lang.ArithmeticException: Non-terminating decimal expansion;
- SyntaxError: Non-UTF-8 code starting with '\xbd' in file
- A web-scraping framework written in Javascript, using PhantomJS and jQuery pjscrape
- qt 错误:request for member 'show' in 'showlist_ui', which is of non-class type 'ShowList*'
- 运行python程序时出现错误“SyntaxError: Non-ASCII character '\xe8' in file variable.py on line 1, but no encod”
- Try to use "twisted.enterprise.adbapi" accessing database nonblockingly in Twisted (failed)
- [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated c
- SQL---Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column '
- 解决strings.xml格式化占位符错误: Multiple substitutions specified in non-positional format
- SyntaxError: Non-ASCII character '\xef' in file deinstall_mysql_5.7.py on line 8, but no encoding de
- Non-convex MeshCollider with non-kinematic Rigidbody is no longer supported in Unity 5.
- Android Fragment avoid non-default constructors in fragments use a default constructor plus fragment
- Last non-zero Digit in N!(阶乘最后非0位)