WebDriver::Tiny::Elements
$elems->click;
$elems->clear;
$elems->send_keys('The quick brown fox jumps over the lazy dog');
say $elem->html;
Get a serialized HTML fragment describing the element including its descendants.
Get the combined text contents of each element in the set of matched elements, including their descendants.
The following methods merely return information about this collection or return a new collection, none of them involve a call to the server.
Returns a new collection containing all the elements in the original plus any that were passed as arguments.
Returns a new collection containing only the first element in this collection.
Returns a new collection containing only the last element in this collection.
Returns a count of how many elements are in the collection.
Returns a new collection containing the elements of the current collection, indentified by indices, starting at zero e.g.
$elems->slice(0); # Same as first. $elems->slice(1, 2); # The second and the third elements. $elems->slice(-1); # Same as last.
Splits a collection into a list of collections, with each collection containing one element.
@elems = $elems->split; $elems->split == $elems->size; # true
Returns a new collection containing no duplicate elements, order is not preserved.
$elem->screenshot('/tmp/foo.png');
WebDriver::Tiny
To install WebDriver::Tiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebDriver::Tiny
CPAN shell
perl -MCPAN -e shell install WebDriver::Tiny
For more information on module installation, please visit the detailed CPAN module installation guide.