[clug] Automating firefox

Michael Cohen scudette at gmail.com
Mon Jan 14 09:41:21 GMT 2008

Sam how would this work? As far as I can tell in js you can issue a
window.print() which brings up the print dialog but you can not
actually submit it due to the js security model. Neither can you
select the output filename. Am i far off the mark?

So far i have been playing with the many suggestions on this thread. I
found Xnee which seems sort of able to do what I want except that
there is no way to tell it which windows to target. Most solutions
seem to be flying blind - injecting keystrokes with very little
feedback about which window they are using. Maybe I will patch xnee to
address keystrokes at named windows which would make it more robust
(in case firefox lost focus for some reason).

I think its definitely doable though,

2008/1/14 Sam Couter <sam at couter.id.au>:
> Michael Cohen <scudette at gmail.com> wrote:
> > I have a need in my web application to generate some pdfs from html
> > pages.
> If you control the web application, you can include JavaScript to do
> what you want.
> An alternative is to use a proxy server that injects JavaScript. See
> Selenium (http://www.openqa.org/selenium/) for an example. It's
> implemented in Java, but it drives browsers using JavaScript.
> --
> Sam Couter         |  mailto:sam at couter.id.au
>                    |  jabber:sam at teknohaus.dyndns.org
> OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C
> Version: GnuPG v1.4.6 (GNU/Linux)
> iD8DBQFHiyFJhTADrt6Jx1wRAiIrAJ9cP7+EoUaxiLaxBHpCvCP24qQqmgCffM48
> kTvHW+wqJmutJ8Eqm8XplAg=
> =kIWr
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux

More information about the linux mailing list