.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Firefox::Marionette::Capabilities 3pm" .TH Firefox::Marionette::Capabilities 3pm "2023-12-22" "perl v5.36.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Firefox::Marionette::Capabilities \- Represents Firefox Capabilities retrieved using the Marionette protocol .SH "VERSION" .IX Header "VERSION" Version 1.35 .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 2 \& use Firefox::Marionette(); \& use v5.10; \& \& my $firefox = Firefox::Marionette\->new( capabilities => Firefox::Marionette::Capabilities\->new( accept_insecure_certs => 0 ) ); \& if ($firefox\->capabilities\->accept_insecure_certs()) { \& say "Browser will now ignore certificate failures"; \& } .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This module handles the implementation of Firefox Capabilities using the Marionette protocol .SH "SUBROUTINES/METHODS" .IX Header "SUBROUTINES/METHODS" .SS "accept_insecure_certs" .IX Subsection "accept_insecure_certs" indicates whether untrusted and self-signed \s-1TLS\s0 certificates are implicitly trusted on navigation for the duration of the session. .SS "browser_name" .IX Subsection "browser_name" returns the browsers name. For example 'firefox' .SS "browser_version" .IX Subsection "browser_version" returns the version of firefox .SS "enumerate" .IX Subsection "enumerate" This method returns a list of strings describing the capabilities that this version of Firefox supports. .SS "moz_accessibility_checks" .IX Subsection "moz_accessibility_checks" returns the current accessibility (a11y) value .SS "moz_build_id" .IX Subsection "moz_build_id" returns the Firefox BuildId .SS "moz_headless" .IX Subsection "moz_headless" returns whether the browser is running in headless mode .SS "moz_process_id" .IX Subsection "moz_process_id" returns the process id belonging to the browser .SS "moz_profile" .IX Subsection "moz_profile" returns the directory that contains the browsers profile .SS "moz_shutdown_timeout" .IX Subsection "moz_shutdown_timeout" returns the value of moz:shutdownTimeout (aka the value of config toolkit.asyncshutdown.crash_timeout) .SS "moz_use_non_spec_compliant_pointer_origin" .IX Subsection "moz_use_non_spec_compliant_pointer_origin" returns a boolean value to indicate how the pointer origin for an action command will be calculated. .PP With Firefox 59 the calculation will be based on the requirements by the WebDriver specification. This means that the pointer origin is no longer computed based on the top and left position of the referenced element, but on the in-view center point. .PP To temporarily disable the WebDriver conformant behavior use 0 as value for this capability. .PP Please note that this capability exists only temporarily, and that it will be removed once all Selenium bindings can handle the new behavior. .SS "moz_webdriver_click" .IX Subsection "moz_webdriver_click" returns a boolean value to indicate which kind of interactability checks to run when performing a click or sending keys to an elements. For Firefoxen prior to version 58.0 some legacy code as imported from an older version of FirefoxDriver was in use. .PP With Firefox 58 the interactability checks as required by the WebDriver specification are enabled by default. This means geckodriver will additionally check if an element is obscured by another when clicking, and if an element is focusable for sending keys. .PP Because of this change in behaviour, we are aware that some extra errors could be returned. In most cases the test in question might have to be updated so it's conform with the new checks. But if the problem is located in geckodriver, then please raise an issue in the issue tracker. .PP To temporarily disable the WebDriver conformant checks use 0 as value for this capability. .PP Please note that this capability exists only temporarily, and that it will be removed once the interactability checks have been stabilized. .SS "new" .IX Subsection "new" accepts a hash as a parameter. Allowed keys are below; .IP "\(bu" 4 accept_insecure_certs \- Indicates whether untrusted and self-signed \s-1TLS\s0 certificates are implicitly trusted on navigation for the duration of the session. Allowed values are 1 or 0. Default is 0. .IP "\(bu" 4 moz_accessibility_checks \- run a11y checks when clicking elements. Allowed values are 1 or 0. Default is 0. .IP "\(bu" 4 moz_headless \- the browser should be started with the \-headless option. moz_headless is only supported in Firefox 56+ .IP "\(bu" 4 moz_use_non_spec_compliant_pointer_origin \- a boolean value to indicate how the pointer origin for an action command will be calculated. .Sp With Firefox 59 the calculation will be based on the requirements by the WebDriver specification. This means that the pointer origin is no longer computed based on the top and left position of the referenced element, but on the in-view center point. .Sp To temporarily disable the WebDriver conformant behavior use 0 as value for this capability. .Sp Please note that this capability exists only temporarily, and that it will be removed once all Selenium bindings can handle the new behavior. .IP "\(bu" 4 moz_webdriver_click \- a boolean value to indicate which kind of interactability checks to run when performing a click or sending keys to an elements. For Firefoxen prior to version 58.0 some legacy code as imported from an older version of FirefoxDriver was in use. .Sp With Firefox 58 the interactability checks as required by the WebDriver specification are enabled by default. This means geckodriver will additionally check if an element is obscured by another when clicking, and if an element is focusable for sending keys. .Sp Because of this change in behaviour, we are aware that some extra errors could be returned. In most cases the test in question might have to be updated so it's conform with the new checks. But if the problem is located in geckodriver, then please raise an issue in the issue tracker. .Sp To temporarily disable the WebDriver conformant checks use 0 as value for this capability. .Sp Please note that this capability exists only temporarily, and that it will be removed once the interactability checks have been stabilized. .IP "\(bu" 4 page_load_strategy \- defines the page load strategy for the upcoming browser session. .IP "\(bu" 4 proxy \- describes the proxy setup for the upcoming browser session. .IP "\(bu" 4 strict_file_interactability \- a boolean value to indicate if interactability checks will be applied to . Allowed values are 1 or 0. Default is 0. .IP "\(bu" 4 timeouts \- describes the timeouts imposed on certain session operations. .IP "\(bu" 4 unhandled_prompt_behavior \- defines what firefox should do on encountering a user prompt . There are a range of allowed values , including \*(L"dismiss\*(R", \*(L"accept\*(R", \*(L"dismiss and notify\*(R", \*(L"accept and notify\*(R" and \*(L"ignore\*(R". .PP This method returns a new capabilities object. .SS "page_load_strategy" .IX Subsection "page_load_strategy" returns the page load strategy to use for the duration of the session. The page load strategy corresponds to the readyState and may be one of the following values; .IP "\(bu" 4 normal \- Wait for the document and all sub-resources have finished loading. The corresponding readyState is \*(L"complete\*(R". The load event is about to fire. This strategy is the default value. .IP "\(bu" 4 eager \- Wait for the document to have finished loading and have been parsed. Sub-resources such as images, stylesheets and frames are still loading. The corresponding readyState is \*(L"interactive\*(R". .IP "\(bu" 4 none \- return immediately after starting navigation. The corresponding readyState is \*(L"loading\*(R". .SS "platform_name" .IX Subsection "platform_name" returns the operating system name. For example 'linux', 'darwin' or 'windows_nt'. .SS "proxy" .IX Subsection "proxy" returns the current proxy object .SS "platform_version" .IX Subsection "platform_version" returns the operation system version. For example '4.14.11\-300.fc27.x86_64', '17.3.0' or '10.0' .SS "rotatable" .IX Subsection "rotatable" does this version of firefox have a rotatable screen such as Android Fennec. .SS "set_window_rect" .IX Subsection "set_window_rect" returns true if Firefox fully supports setWindowRect , otherwise it returns false. .SS "strict_file_interactability" .IX Subsection "strict_file_interactability" returns the current value of strictFileInteractability .SS "timeouts" .IX Subsection "timeouts" returns the current timeouts object .SS "unhandled_prompt_behavior" .IX Subsection "unhandled_prompt_behavior" returns the current value of unhandledPromptBehavior . .SH "DIAGNOSTICS" .IX Header "DIAGNOSTICS" None. .SH "CONFIGURATION AND ENVIRONMENT" .IX Header "CONFIGURATION AND ENVIRONMENT" Firefox::Marionette::Capabilities requires no configuration files or environment variables. .SH "DEPENDENCIES" .IX Header "DEPENDENCIES" None. .SH "INCOMPATIBILITIES" .IX Header "INCOMPATIBILITIES" None reported. .SH "BUGS AND LIMITATIONS" .IX Header "BUGS AND LIMITATIONS" To report a bug, or view the current list of bugs, please visit .SH "AUTHOR" .IX Header "AUTHOR" David Dick \f(CW\*(C`\*(C'\fR .SH "LICENSE AND COPYRIGHT" .IX Header "LICENSE AND COPYRIGHT" Copyright (c) 2023, David Dick \f(CW\*(C`\*(C'\fR. All rights reserved. .PP This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See \*(L"perlartistic\*(R" in perlartistic. .SH "DISCLAIMER OF WARRANTY" .IX Header "DISCLAIMER OF WARRANTY" \&\s-1BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE \*(L"AS IS\*(R" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.\s0 .PP \&\s-1IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE\s0 (\s-1INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE\s0), \s-1EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\s0