Weasel::Element(3pm) | User Contributed Perl Documentation | Weasel::Element(3pm) |
Weasel::Element - The base HTML/Widget element class
0.02
my $element = $session->page->find("./input[\@name='phone']"); my $value = $element->send_keys('555-885-321');
This module provides the base class for all page elements, encapsulating the regular element interactions, such as finding child element, querying attributes and the tag name, etc.
In case the $locator is a mnemonic (starts with an asterisk ['*']), additional arguments may be provided for expansion of the mnemonic. See Weasel::FindExpanders::HTML for documentation of the standard expanders.
Any arguments passed in the $widget_args array reference, are passed to the widget's constructor.
In case the $locator is a mnemonic (starts with an asterisk ['*']), additional arguments may be provided for expansion of the mnemonic. See Weasel::FindExpanders::HTML for documentation of the standard expanders.
Any arguments passed in the $widget_args array reference, are passed to the widget's constructor.
Note: Some browsers apply default values to attributes which
are not
part of the original page. As such, there's no direct relation between
the existence of attributes in the original page and this function
returning "undef".
Note: Those users familiar with Selenium might be looking for
a method
called "is_selected" or
"set_selected". Weasel doesn't have
that
short-hand. Please use
"get_attribute"/"set_attribute"
with an
attribute name of "selected"
instead.
Note: Those users familiar with Selenium might be looking for
a method
called "is_selected" or
"set_selected". Weasel doesn't have
that
short-hand. Please use
"get_attribute"/"set_attribute"
with an
attribute name of "selected"
instead.
$element->send_keys("hello", ' ', "world");
Erik Huelsmann
Erik Huelsmann Yves Lavoie
Erik Huelsmann
Bugs can be filed in the GitHub issue tracker for the Weasel
project:
https://github.com/perl-weasel/weasel/issues
The source code repository for Weasel is at
https://github.com/perl-weasel/weasel
Community support is available through perl-weasel@googlegroups.com <mailto:perl-weasel@googlegroups.com>.
(C) 2016-2019 Erik Huelsmann
Licensed under the same terms as Perl.
2021-01-10 | perl v5.32.0 |