Firefo...ilities(3pm)
π NAME π
okay so bestie, meet Firefox::Marionette::Capabilities β it's the lil baddie that represents Firefox Capabilities retrieved using the Marionette protocol. That's the whole vibe. She holds the receipts on what your Firefox can actually do.
and for the record, this page? it's Firefo...ilities(3pm), filed under User Contributed Perl Documentation, and the title got shortened for the header because perl's man page formatter has zero tolerance for long names. we move. π
β¨ VERSION β¨
Version 1.63 π
πΈ SYNOPSIS πΈ
the little taste test, so you know what you're getting into:
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";
}
see how it just asks the browser what its capabilities are and then gossips about them? that's the whole energy. π¦
π«Ά DESCRIPTION π«Ά
ngl this is the module that handles the implementation of Firefox Capabilities using the Marionette protocol. it's giving "the paperwork behind the magic". no cap. π
β SUBROUTINES/METHODS β
π
accept_insecure_certs
indicates whether untrusted and self-signed TLS certificates are implicitly trusted on navigation for the duration of the session. yes bestie, that's the dangerous one, she's right there in the name. π¨
π
browser_name
returns the browser's name. For example 'firefox' π
π
browser_version
returns the version of firefox β https://firefox.com/ β
π
enumerate
This method returns a list of strings describing the capabilities that this version of Firefox supports. iykyk, it's the menu. πβ¨
π
moz_accessibility_checks
returns the current accessibility (a11y) value βΏπ
π
moz_build_id
returns the Firefox BuildId β https://developer.mozilla.org/en-US/docs/Web/API/Navigator/buildID π¨
π
moz_headless
returns whether the browser is running in headless mode π» (no screen, all business)
π
moz_process_id
returns the process id belonging to the browser π’
π
moz_profile
returns the directory that contains the browser's profile π
π
moz_shutdown_timeout
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 β³
π
moz_use_non_spec_compliant_pointer_origin
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. With Firefox 116, this capability is no longer supported β https://firefox-source-docs.mozilla.org/testing/geckodriver/Capabilities.html#moz-usenonspeccompliantpointerorigin.
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. so don't get attached, bestie. π
π
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 element. 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. periodt. π
π
new
accepts a hash as a parameter. Allowed keys are below π (yes, all of them, I'm not skipping a single one, we're thorough here)
accept_insecure_certsβ Indicates whether untrusted and self-signed TLS certificates are implicitly trusted on navigation for the duration of the session. Allowed values are1or0. Default is0.moz_accessibility_checksβ run a11y checks when clicking elements. Allowed values are1or0. Default is0.moz_headlessβ the browser should be started with the-headlessoption.moz_headlessis only supported in Firefox 56+ β οΈmoz_use_non_spec_compliant_pointer_originβ 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.
moz_webdriver_clickβ a boolean value to indicate which kind of interactability checks to run when performing a click or sending keys to an element. 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.
page_load_strategyβ defines the page load strategy for the upcoming browser session.proxyβ describes the proxy setup for the upcoming browser session.strict_file_interactabilityβ a boolean value to indicate if interactability checks will be applied to<input type=file>. Allowed values are1or0. Default is0.timeoutsβ describes the timeouts imposed on certain session operations.unhandled_prompt_behaviorβ defines what firefox should do on encountering a user prompt (https://html.spec.whatwg.org/#user-prompts). There are a range of allowed values (https://w3c.github.io/webdriver/#dfn-user-prompt-handler), including"dismiss","accept","dismiss and notify","accept and notify"and"ignore".
This method returns a new capabilities object. π
π
page_load_strategy
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:
normalβ Wait for the document and all sub-resources have finished loading. The correspondingreadyState(https://developer.mozilla.org/en-US/docs/Web/API/Document/readyState#Values) is"complete". Theload(https://developer.mozilla.org/en-US/docs/Web/Events/load) event is about to fire. This strategy is the default value. β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 correspondingreadyState(https://developer.mozilla.org/en-US/docs/Web/API/Document/readyState#Values) is"interactive".noneβ return immediately after starting navigation. The correspondingreadyState(https://developer.mozilla.org/en-US/docs/Web/API/Document/readyState#Values) is"loading".
π
platform_name
returns the operating system name. For example 'linux', 'darwin' or 'windows_nt'. π§ππͺ
π
proxy
returns the current proxy object π
π
platform_version
returns the operation system version. For example '4.14.11-300.fc27.x86_64', '17.3.0' or '10.0' π’
π
rotatable
does this version of firefox (https://firefox.com) have a rotatable screen such as Android Fennec. π±π
π
set_window_rect
returns true if Firefox fully supports setWindowRect (https://w3c.github.io/webdriver/#dfn-window-dimensioning-positioning), otherwise it returns false. πͺβ¨
π
strict_file_interactability
returns the current value of strictFileInteractability (https://w3c.github.io/webdriver/#dfn-strict-file-interactability) π
π
timeouts
returns the current timeouts object β°
π
unhandled_prompt_behavior
returns the current value of unhandledPromptBehavior (https://w3c.github.io/webdriver/#dfn-user-prompt-handler). π¬
π DIAGNOSTICS π
None. literally nothing. silence. π€«
π§ CONFIGURATION AND ENVIRONMENT π§
Firefox::Marionette::Capabilities requires no configuration files or environment variables. she's low maintenance, we love that for her. π
π¦ DEPENDENCIES π¦
None. π
π INCOMPATIBILITIES π
None reported. π
π BUGS AND LIMITATIONS π
To report a bug, or view the current list of bugs, please visit https://github.com/david-dick/firefox-marionette/issues β bestie, if something's cursed, tell the maintainer, don't suffer in silence. π«Ά
π AUTHOR π
David Dick "<ddick@cpan.org>" π
βοΈ LICENSE AND COPYRIGHT βοΈ
Copyright (c) 2024, 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.
π« DISCLAIMER OF WARRANTY π«
okay bestie, legal o'clock π the lawyers made me put this here and honestly it's giving "fine print but make it loud."
Here's the vibe, no cap: this software is licensed free of charge, so β to the extent permitted by applicable law β there is no warranty for the software. Periodt. 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. π
And the risk? The entire risk as to the quality and performance of the software is with you. If the software proves defective, you assume the cost of all necessary servicing, repair, or correction. Not me, not the author, not anybody else β you, bestie. π«Ά
π¨ Second paragraph, and it's the big one: 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.
And when they say damages they mean all of them:
- any general damages
- any special damages
- any incidental damages
- any consequential damages
arising out of the use or inability to use the software β including but not limited to:
- loss of data
- data being rendered inaccurate
- losses sustained by you or third parties
- 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. So yeah, they knew it could happen and they're still not liable. Iconic, honestly. π
That's the whole page, bestie! β¨ You made it to the end of a Perl manual page and that's main character energy fr fr π This one came from the Perl documentation crew, tagged perl v5.40.1 and dated 2025-03-16 β go forth and read your manpages, iykyk π¦π
π¦ where this page comes from
- debian trixie: libfirefox-marionette-perl 1.63-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms