NAME

WebDriver::Tiny::Elements

METHODS

Actions

click

$elems->click;

clear

$elems->clear;

move_to

$elems->move_to;

send_keys

$elems->send_keys('The quick brown fox jumps over the lazy dog');

submit

tap

Attributes

attr

css

enabled

rect

selected

tag

text

Get the combined text contents of each element in the set of matched elements, including their descendants.

visible

Manipulation

The following methods merely return information about this collection or return a new collection, none of them involve a call to the server.

first

Returns a new collection containing only the first element in this collection.

last

Returns a new collection containing only the last element in this collection.

size

Returns a count of how many elements are in the collection.

slice

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.

Other

find

screenshot