Firefox-Marionette
view release on metacpan or search on metacpan
Firefox crashed after being hit with a signal.
Firefox exited with a %d
Firefox has exited with an error code
Failed to bind socket:%s
The module was unable to bind a socket to any port. Something is
seriously wrong with your environment.
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.
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.
%s method requires a Firefox::Marionette::Element parameter
This function was called incorrectly by your code. Please supply a
Firefox::Marionette::Element parameter when calling this function.
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?
Failed to close socket to firefox:%s
The module was unable to even close a socket. Something is seriously
wrong with your environment.
Failed to send request to firefox:%s
The module was unable to perform a syswrite on the socket connected
to firefox. Maybe firefox crashed?
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?
Failed to read response from socket to firefox:%s
The module was unable to read from the socket connected to firefox.
Maybe firefox crashed?
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 capabilities do not specify proxy
information.
DEPENDENCIES
Firefox::Marionette requires the following non-core Perl modules
* JSON
* URI
* XML::Parser
* Time::Local
INCOMPATIBILITIES
None reported. Always interested in any products with marionette
support that this module could be patched to work with.
BUGS AND LIMITATIONS
DOWNLOADING USING GO METHOD
When using the go method to go directly to a URL containing a
downloadable file, Firefox can hang. You can work around this by
setting the page_load_strategy to 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 download method for an alternative.
MISSING METHODS
Currently the following Marionette methods have not been implemented;
* WebDriver:SetScreenOrientation
To report a bug, or view the current list of bugs, please visit
https://github.com/david-dick/firefox-marionette/issues
SEE ALSO
* MozRepl
* Selenium::Firefox
( run in 0.529 second using v1.01-cache-2.11-cpan-71847e10f99 )