[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] lqt 0.9
- From: Michal Kottman <k0mpjut0r@...>
- Date: Tue, 12 Apr 2011 22:10:03 +0200
2011/4/12 Ignacio Burgueño <ignaciob@inconcertcc.com>:
> On Tue, Apr 12, 2011 at 12:21 PM, Michal Kottman <k0mpjut0r@gmail.com>
> wrote:
>>
>> On Tue, 2011-04-12 at 16:38 +0200, Bertrand Mansion wrote:
>>
>> > I'd love to see a tutorial on how to take a webpage screenshot using
>> > lqt. It seems that QPainter + QWebview could be useful for that but I
>> > didn't try yet, Qt doc is big...
>>
>> require 'qtcore'
>> require 'qtgui'
>> require 'qtwebkit'
>
> This seems to be really useful for headless browser testing. Something
> similar to what Phantom.js is doing.
That's actually one of the use cases that I'm thinking of - you can
actually do a lot with the WebKit API, like get the text of a
component, or simulate a click on a button, which (after making a
wrapper script) makes it actually easy to do website testing.
Thanks for the link to Phantom.js. Actually, Lua + lqt (qtwebkit) also
has "fast and native support for various web standards" :) And that is
before you throw in LuaJIT ;)