Firefo...uttons(3pm)
β¨ Firefox::Marionette::Buttons β the manual, but make it cute β¨
okay so bestie, you found it: Firefox::Marionette::Buttons, aka the User Contributed Perl Documentation page that gives you human readable mouse buttons for the Marionette protocol π like, actual words instead of mystery numbers. we love that for us. π¦
π NAME π
Firefox::Marionette::Buttons β human readable mouse buttons for the Marionette protocol, fr fr. that's the whole vibe. π
πΈ VERSION πΈ
Version 1.63 β¨
π¦ SYNOPSIS π¦
okay so here's the whole flex, no cap:
use Firefox::Marionette();
use Firefox::Marionette::Buttons qw(:all);
use v5.10;
my $firefox = Firefox::Marionette->new()->go('https://metacpan.org');
my $help_button = $firefox->find_class('btn search-btn help-btn');
$firefox->perform(
$firefox->mouse_move($help_button),
$firefox->mouse_down(RIGHT_BUTTON()),
$firefox->mouse_up(RIGHT_BUTTON()),
);
see how it says RIGHT_BUTTON() and not 2? that's the entire point, bestie. main character energy. π
π DESCRIPTION π
so this module handles the implementation of the Firefox Marionette human readable mouse buttons. that's it. that's the job. it takes the cryptic little numbers the protocol wants and gives them names so your code reads like a sentence instead of a riddle. lowkey iconic. π
β CONSTANTS β
the whole girlboss lineup, three of them, all baddies:
π LEFT_BUTTON
returns the left mouse button code, which is 0. β¨
π MIDDLE_BUTTON
returns the middle mouse button code, which is 1. β¨
π RIGHT_BUTTON
returns the right mouse button code, which is 2. β¨
π SUBROUTINES/METHODS π
None. π not a single one. it's giving "constants only, we're booked and busy."
π₯ DIAGNOSTICS π₯
None. nothing to report, no drama, we're unbothered. π
π§ CONFIGURATION AND ENVIRONMENT π§
Firefox::Marionette::Buttons requires no configuration files or environment variables. zero setup, zero stress, just vibes. π
π DEPENDENCIES π
None. it's self-sufficient, she doesn't need anyone. π
π« INCOMPATIBILITIES π«
None reported. π«Ά
π BUGS AND LIMITATIONS π
to report a bug, or to view the current list of bugs, please visit <https://github.com/david-dick/firefox-marionette/issues> β go off, tell them everything, they're listening. π
π 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, deep breath, this is the scary part and I need you to read it for real, not just scroll past it. π«Ά
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. π
like I said: read it. no cap.
and that's a wrap, bestie π this page came from perl v5.40.1, dated 2025-03-16, and it's the Firefo...uttons(3pm) page β yes the title really is truncated like that, that's just how it renders, we don't make the rules π
go click some buttons, literally. bye!! π¦β¨
π¦ 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