Firefox::Marionette::Capabilities(3pm) | User Contributed Perl Documentation | Firefox::Marionette::Capabilities(3pm) |
Firefox::Marionette::Capabilities - Represents Firefox Capabilities retrieved using the Marionette protocol
Version 1.35
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"; }
This module handles the implementation of Firefox Capabilities using the Marionette protocol
indicates whether untrusted and self-signed TLS certificates are implicitly trusted on navigation for the duration of the session.
returns the browsers name. For example 'firefox'
returns the version of firefox <https://firefox.com/>
This method returns a list of strings describing the capabilities that this version of Firefox supports.
returns the current accessibility (a11y) value
returns the Firefox BuildId <https://developer.mozilla.org/en-US/docs/Web/API/Navigator/buildID>
returns whether the browser is running in headless mode
returns the process id belonging to the browser
returns the directory that contains the browsers profile
returns the value of moz:shutdownTimeout <https://github.com/mozilla/gecko-dev/commit/7aad85995b21bdaf440dc9dad35c5769a35e90eb#diff-48053ba06cc33be0efb2d7256a1affd9> (aka the value of config toolkit.asyncshutdown.crash_timeout)
returns a boolean value to indicate how the pointer origin for an action command will be calculated.
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.
To temporarily disable the WebDriver conformant behavior use 0 as value for this capability.
Please note that this capability exists only temporarily, and that it will be removed once all Selenium bindings can handle the new behavior.
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.
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.
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.
To temporarily disable the WebDriver conformant checks use 0 as value for this capability.
Please note that this capability exists only temporarily, and that it will be removed once the interactability checks have been stabilized.
accepts a hash as a parameter. Allowed keys are below;
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.
To temporarily disable the WebDriver conformant behavior use 0 as value for this capability.
Please note that this capability exists only temporarily, and that it will be removed once all Selenium bindings can handle the new behavior.
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.
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.
To temporarily disable the WebDriver conformant checks use 0 as value for this capability.
Please note that this capability exists only temporarily, and that it will be removed once the interactability checks have been stabilized.
This method returns a new capabilities object.
returns the page load strategy <https://w3c.github.io/webdriver/#dfn-table-of-page-load-strategies> to use for the duration of the session. The page load strategy corresponds to the readyState <https://developer.mozilla.org/en-US/docs/Web/API/Document/readyState#Values> and may be one of the following values;
returns the operating system name. For example 'linux', 'darwin' or 'windows_nt'.
returns the current proxy object
returns the operation system version. For example '4.14.11-300.fc27.x86_64', '17.3.0' or '10.0'
does this version of firefox <https://firefox.com> have a rotatable screen such as Android Fennec.
returns true if Firefox fully supports setWindowRect <https://w3c.github.io/webdriver/#dfn-window-dimensioning-positioning>, otherwise it returns false.
returns the current value of strictFileInteractability <https://w3c.github.io/webdriver/#dfn-strict-file-interactability>
returns the current timeouts object
returns the current value of unhandledPromptBehavior <https://w3c.github.io/webdriver/#dfn-user-prompt-handler>.
None.
Firefox::Marionette::Capabilities requires no configuration files or environment variables.
None.
None reported.
To report a bug, or view the current list of bugs, please visit <https://github.com/david-dick/firefox-marionette/issues>
David Dick "<ddick@cpan.org>"
Copyright (c) 2023, David Dick "<ddick@cpan.org>". All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perlartistic" in perlartistic.
BECAUSE 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 "AS IS" 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.
IN 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 (INCLUDING 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), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
2023-12-22 | perl v5.36.0 |