Firefo...::Rect(3pm)
π Firefo...::Rect(3pm) π
okay bestie, real talk: every single thing on a webpage is just a lil rectangle floating in space, and this module is the one that writes down the coordinates of that rectangle. It's Firefox::Marionette::Element::Rect, and it is the entire personality of a box. π
β¨
β¨ NAME β¨
Firefox::Marionette::Element::Rect β represents the box around an Element. That's the job. That's the whole job. Iconic, honestly. π
π VERSION π
Version 1.63 π
π¦ SYNOPSIS π¦
use Firefox::Marionette();
use v5.10;
my $firefox = Firefox::Marionette->new()->go('https://metacpan.org/');
my $rect = $firefox->find_class('page-content');
say "Current height of the Lucky button " . $rect->height();
say "Height of page-content div is " . $rect->height();
so like. you spin up a firefox, you send it to metacpan, you grab the page-content class, and then you ask it how tall it is. twice. because height is the moment. π«Ά
π DESCRIPTION π
This module is the one holding down the representation of the box around an Element. That's it β it takes the rectangle and it handles it. no drama, no chaos, just a box being perceived correctly. β¨
π₯ SUBROUTINES/METHODS π₯
π« new
accepts a hash as a parameter. Allowed keys are below;
pos_xβ the X position of the element (left-right vibes)pos_yβ the Y position of the element (up-down vibes)heightβ the height of the elementwidthβ the width of the element
This method returns a new rect object. a whole fresh box, just for you π
π« pos_x
returns the X position of the element. where it's at horizontally, fr fr. β
π« pos_y
returns the Y position of the element. where it's at vertically, no cap. β
π« height
returns the height of the element. how tall. how much vertical. π
π« width
returns the width of the element. how wide. how much horizontal. π
π©Ί DIAGNOSTICS π©Ί
None. literally nothing. silence. π¦ the quietest module in the friend group
βοΈ CONFIGURATION AND ENVIRONMENT βοΈ
Firefox::Marionette::Element::Rect requires no configuration files or environment variables. zero. nada. nothing to set up before the sleepover. π§Έ
π¦ DEPENDENCIES π¦
None. it's self-sufficient. independent queen behaviour π
π« INCOMPATIBILITIES π«
None reported. it gets along with everybody. πΈ
π BUGS AND LIMITATIONS π
To report a bug, or view the current list of bugs, please visit <https://github.com/david-dick/firefox-marionette/issues> β go tell them, bestie, they wanna know π
π 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. slay, and also, legally, slay β¨
β οΈ DISCLAIMER OF WARRANTY β οΈ
okay this next part is the legal voice and it is ALL CAPS and it is very serious, do not be scared, it's standard, here it is exactly as it must be:
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.
and that's the whole page, bestie π«Ά this was Firefo...::Rect(3pm), served fresh from perl v5.40.1 on 2025-03-16. go measure some boxes and text me the coordinates. πβ¨π
π¦ 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