WWW::Mechanize::Firefox::Extended - Adds handy functions to WWW::Mechanize::Firefox
Version 0.03
Module provides handy functions to check existence of selectors on a page and to wait for selectors to come into existence.
use WWW::Mechanize::Firefox::Extended; my $mech = WWW::Mechanize::Firefox::Extended->new(); $mech->get('https://www.example.com/'); $mech->hasAll('#username', '#password', '#Image1'); $mech->hasAny('.close-button', '.exit-button', '.out-button'); $mech->waitAll(5, '#slow-loading-element') or die "Expected element not found"; $mech->waitAny(5, '#slow-loading-element', '#another-element') or die "Expected element not found";
Returns true if all selectors exists. False otherwise.
Returns true if any selector exists. False if none exists.
Wait until all selectors are present or the wait times out. Returns true if all selectors found or false if none found within the timeout period.
Uses Time::HiRes
Wait until any selectors are present or the wait times out. Returns true if any selectors are or false if none found within the timeout period.
Hoe-Kit Chew, <hoekit at gmail dot com>
<hoekit at gmail dot com>
Please report any bugs or feature requests to bug-www-mechanize-firefox-extended at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Mechanize-Firefox-Extended. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-www-mechanize-firefox-extended at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc WWW::Mechanize::Firefox::Extended
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Mechanize-Firefox-Extended
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/WWW-Mechanize-Firefox-Extended
CPAN Ratings
http://cpanratings.perl.org/d/WWW-Mechanize-Firefox-Extended
Search CPAN
http://search.cpan.org/dist/WWW-Mechanize-Firefox-Extended/
This module is available on GitHub at https://github.com/hoekit/www-mechanize-firefox-extended/.
Pull requests welcomed.
Copyright 2015 Hoe-Kit Chew.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
To install WWW::Mechanize::Firefox::Extended, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Mechanize::Firefox::Extended
CPAN shell
perl -MCPAN -e shell install WWW::Mechanize::Firefox::Extended
For more information on module installation, please visit the detailed CPAN module installation guide.