nysus has asked for the wisdom of the Perl Monks concerning the following question:
I'm on Mac. The above script works fine when the FF app is completely closed or when an existing instance of FF exists. However, on a Mac, it's possible for the application can be running without having any windowed instance of FF displaying. And when I run the above code without an windowed instance of FF, I get the following error:use WWW::Mechanize::Firefox; my $mech = WWW::Mechanize::Firefox->new( launch => '/Applications/Firefox.app/Contents/MacOS/firefox', ); $mech->get('http://google.com');
I was told this was the place to go for support for this module. Let me know if SOPW isn't the right place.I, MOZREPL : Client connected : 127.0.0.1:57788 : chrome://browser/con +tent/hiddenWindow.xul Can't call method "addTab" on an undefined value at /Library/Perl/5.12 +/Firefox/Application/API40.pm line 131.
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon";
$nysus = $PM . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize::Firefox throwing error when launching a new Firefox instance on Mac
by Corion (Patriarch) on Feb 28, 2013 at 13:14 UTC | |
by nysus (Parson) on Feb 28, 2013 at 13:45 UTC |