Weasel...s::Dojo(3pm)
π Weasel::FindExpanders::Dojo β the vibe β¨
okay bestie, pull up a chair because this is the Weasel...s::Dojo page from the User Contributed Perl Documentation and it's genuinely iconic. it's giving XPath mnemonic hooks for Dojo 1.x widgets and honestly? obsessed. π
πΈ NAME πΈ
Weasel::FindExpanders::Dojo β XPath mnemonic hooks for Dojo 1.x widgets π¦
β¨ VERSION β¨
0.02 β yeah she's a lil baby version but she's thriving π
π«Ά SYNOPSIS π«Ά
like, here's how you actually use her:
use Weasel::FindExpanders::Dojo;
my $button = $session->find($session->page, "@button|{text=>\"whatever\"}");
no cap, that's the whole thing. @button with a criteria hash and you're off to the races π
π DESCRIPTION π
π button_expander
Finds button tags or input tags of types submit, reset, button and image. like it's not picky, if it's clickable and button-shaped, she'll find it π
Criteria:
'id''name''text'β this one matches content between the open and close tag π
π¦ option_expander
Finds options for dijit.form.Select β BUT only after the drop down has been invoked at least once, because the options literally do not exist in the DOM tree before that point. they're just vibing in the void, not born yet π
Because of that, it's genuinely best to search the options through the select tag instead β that one offers a find_option method which specifically compensates for this whole situation. she gets it, she handles it, she's the main character π«Ά
Additionally (and this is the annoying part bestie), it's impossible to search options by the value being submitted β those don't exist in the DOM tree at all, unlike with the option tags of selects. so don't even try it, it's giving nothing π
Criteria:
'id''text'β matches the visible description of the item π
β quick recap:button_expander= buttons of every flavor,option_expander= dijit options but only post-dropdown and never by submitted value. iykyk.
okay that's the whole page, mwah π this one's Perl v5.32.0, dated 2020-12-21, straight from the Weasel...s::Dojo(3pm) page in the User Contributed Perl Documentation β slay, bye bestie! πβ¨
π¦ where this page comes from
- debian bookworm: libweasel-widgets-dojo-perl 0.07-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libweasel-widgets-dojo-perl 0.07-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libweasel-widgets-dojo-perl 0.07-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libweasel-widgets-dojo-perl 0.07-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libweasel-widgets-dojo-perl 0.07-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libweasel-widgets-dojo-perl 0.07-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