capture a web scrolling page in a image

B

Bulhac Mihai

How can i capturie a web scrolling page in a image with ruby? i don't
want to capture only what is visible, i want to capture and the page
after scrolling.

Tnx.
 
S

Stanislav Sedov

How can i capturie a web scrolling page in a image with ruby? i don't
want to capture only what is visible, i want to capture and the page
after scrolling.

You obviously need an html rendering engine in this case. 'links -g' probably
can do the trick.

I dobt there're html rendering libraries in ruby.
 
G

GOTO Kentaro

This is not a direct answer. Just hints, I hope.

webkit2png is a command line screen capture tool on Mac OS X.
Many command line tools are listed in
http://labnol.blogspot.com/2006/06/how-to-capture-save-screenshots-of.html

Browsershots has a XML-RPC interface. Its implementation gives us
also many tricks how we can operate browsers. Python is used but.
http://browsershots.org/

MozRepl, which is included in MozLab, provides telnet interface to Firefox.
https://addons.mozilla.org/ja/firefox/addon/2692
http://hyperstruct.net/projects/mozrepl

http://screenshot.hatena.ne.jp/ is written in Ruby.
That server communicates with dRuby programs which invoke
IE based capture tool crenahtml2jpg on Windows.

Hope this helps,


Gotoken
 
J

Jane Zhu

Hi~
Is there any update on this topic?
When I'm using Watir to test a website. I think it would be good to have
the screenshot of the website. There're tools in IE or Firefox to do it.
But I wonder if there's something in Watir that can do this job
directly?

Have you done anything similar to this? Please help.
Many thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,150
Messages
2,570,853
Members
47,394
Latest member
Olekdev

Latest Threads

Top