Mantriur
Mantriur

Reputation: 1017

Script browser behavior on the command line (linux)

I need to automate screenshots of a website. The screenshot needs to contain the browser window itself and the full web page (scrolled in multiple screenshots if necessary).

To do this I am opening a virtual display with vncserver, starting a browser in it, and taking screenshots with ImageMagicks "import".

Now I have a few problems:

All this seems to be possible with iMacros, but it's not-quite-so-cheap payware and I can't find any other solution.

Does anyone know of a way to control any browser through command line options in Linux solving the above problems? Preferably a low-cost solution. :)

Upvotes: 0

Views: 381

Answers (1)

FelipeAls
FelipeAls

Reputation: 22161

webkit2png will render screenshots of any page, on OS X

Maybe xvfb would also work? (a webpage can be insanely long, I wouldn't jump head first for this solution)

Also Chromeless from Mozilla-Labs

Upvotes: 1

Related Questions