Firefox-Marionette
view release on metacpan or search on metacpan
lib/Firefox/Marionette.pm view on Meta::CPAN
The module was unable to seek to the start of a file in your temporary directory. Something is seriously wrong with your environment.
=item C<< Failed to create a socket:%s >>
The module was unable to even create a socket. Something is seriously wrong with your environment.
=item C<< Failed to connect to %s on port %d:%s >>
The module was unable to connect to the Marionette port. This is probably a bug in this module's logic. Please report as described in the BUGS AND LIMITATIONS section below.
=item C<< Firefox killed by a %s signal (%d) >>
Firefox crashed after being hit with a signal.
=item C<< Firefox exited with a %d >>
Firefox has exited with an error code
=item C<< Failed to bind socket:%s >>
The module was unable to bind a socket to any port. Something is seriously wrong with your environment.
=item C<< Failed to close random socket:%s >>
The module was unable to close a socket without any reads or writes being performed on it. Something is seriously wrong with your environment.
=item C<< moz:headless has not been determined correctly >>
The module was unable to correctly determine whether Firefox is running in "headless" or not. This is probably a bug in this module's logic. Please report as described in the BUGS AND LIMITATIONS section below.
=item C<< %s method requires a Firefox::Marionette::Element parameter >>
This function was called incorrectly by your code. Please supply a L<Firefox::Marionette::Element|Firefox::Marionette::Element> parameter when calling this function.
=item C<< Failed to write to temporary file:%s >>
The module was unable to write to a file in your temporary directory. Maybe your disk is full?
=item C<< Failed to close socket to firefox:%s >>
The module was unable to even close a socket. Something is seriously wrong with your environment.
=item C<< Failed to send request to firefox:%s >>
The module was unable to perform a syswrite on the socket connected to firefox. Maybe firefox crashed?
=item C<< Failed to read size of response from socket to firefox:%s >>
The module was unable to read from the socket connected to firefox. Maybe firefox crashed?
=item C<< Failed to read response from socket to firefox:%s >>
The module was unable to read from the socket connected to firefox. Maybe firefox crashed?
=back
=head1 CONFIGURATION AND ENVIRONMENT
Firefox::Marionette requires no configuration files or environment variables. It will however use the DISPLAY and XAUTHORITY environment variables to try to connect to an X Server.
It will also use the HTTP_PROXY, HTTPS_PROXY, FTP_PROXY and ALL_PROXY environment variables as defaults if the session L<capabilities|Firefox::Marionette::Capabilities> do not specify proxy information.
=head1 DEPENDENCIES
Firefox::Marionette requires the following non-core Perl modules
=over
=item *
L<JSON|JSON>
=item *
L<URI|URI>
=item *
L<XML::Parser|XML::Parser>
=item *
L<Time::Local|Time::Local>
=back
=head1 INCOMPATIBILITIES
None reported. Always interested in any products with marionette support that this module could be patched to work with.
=head1 BUGS AND LIMITATIONS
=head2 DOWNLOADING USING GO METHOD
When using the L<go|/go> method to go directly to a URL containing a downloadable file, Firefox can hang. You can work around this by setting the L<page_load_strategy|Firefox::Marionette::Capabilities#page_load_strategy> to C<none> like below;
#! /usr/bin/perl
use strict;
use warnings;
use Firefox::Marionette();
my $firefox = Firefox::Marionette->new( capabilities => Firefox::Marionette::Capabilities->new( page_load_strategy => 'none' ) );
$firefox->go("https://github.com/david-dick/firefox-marionette/archive/refs/heads/master.zip");
while(!$firefox->downloads()) { sleep 1 }
while($firefox->downloading()) { sleep 1 }
foreach my $path ($firefox->downloads()) {
warn "$path has been downloaded";
}
$firefox->quit();
Also, check out the L<download|/download> method for an alternative.
=head2 MISSING METHODS
Currently the following Marionette methods have not been implemented;
=over
=item * WebDriver:SetScreenOrientation
=back
To report a bug, or view the current list of bugs, please visit L<https://github.com/david-dick/firefox-marionette/issues>
( run in 2.103 seconds using v1.01-cache-2.11-cpan-d7a12ab2c7f )