more useful options | |
PerlMonks |
Headless (Xvfb) WWW::Mechanize::Firefoxby onelesd (Pilgrim) |
on Mar 27, 2012 at 20:02 UTC ( [id://962011]=perlquestion: print w/replies, xml ) | Need Help?? |
onelesd has asked for the wisdom of the Perl Monks concerning the following question: I am working on a multi-page form filler to login to Yahoo Mail, but have run into a problem. The code works when I run firefox in X11 with a display, but fails when I run firefox in Xvfb. Xvfb is setuid. I can watch it run in X11 with a display (which happens to be running on my mac - the server where fillform.pl runs is Debian Squeeze). This is where the code fails in fillform.pl when I try to use Xvfb. I can see it connect to firefox from the MOZREPL log:
And here is the console session:
This is line 574: $source->addProgressListener($lsn,$NOTIFY_STATE_DOCUMENT);
Back to
Seekers of Perl Wisdom
|
|