in reply to Headless (Xvfb) WWW::Mechanize::Firefox

Are you sure that the X11 browser version, cookies etc. are identical to the Xvfb version?

From the error location, it seems to me that in the Xvfb version, $mech->tab->{linkedBrowser} is undef, which "should never happen". Is there maybe some easily spotted visual difference between the two browsers? Like a tab bar, which is only in the X11 version, or something like that?

Replies are listed 'Best First'.
Re^2: Headless (Xvfb) WWW::Mechanize::Firefox
by onelesd (Pilgrim) on Mar 27, 2012 at 20:55 UTC

    Corion,

    I use the same firefox binary for X11 and Xvfb. I start it up over ssh (ssh -tXY server firefox) and it runs on the X11 server on my mac. When I run it in Xvfb on the Debian server I can send firefox xdotool key sequences and it works fine (ctrl+l, ctrl+q, etc.). The only difference when I run firefox in Xvfb is I set the DISPLAY variable.