Appium::Element - Representation of an Appium element
version 0.0804
my $appium = Appium->new(caps => { app => '/url/or/path/to/mobile/app.zip' }); my $appium_element = $appium->find_element('locator', 'id'); $appium_element->click; $appium_element->set_value('example', 'values');
Appium::Elements are the elements in your app with which you can interact - you can send them taps, clicks, text for inputs, and query them as to their state - whether they're displayed, or enabled, etc. See Selenium::Remote::WebElement for the full descriptions of the following subroutines that we inherit:
click submit send_keys is_selected set_selected toggle is_enabled get_element_location get_element_location_in_view get_tag_name clear get_attribute get_value is_displayed is_hidden get_size get_text
Although we blindly inherit all of these subs, there's no guarantee that they will work in Appium. For example, we inherit "describe" in Selenium::Remote::WebElement, but Appium doesn't implement describe, so it won't do anything in this sub.
describe
Tap on the element - an alias for S::R::WebElement's 'click'
Immediately set the value of an element in the application.
$elem->set_value( 'immediately ', 'without waiting' );
Please see those modules/websites for more information related to this module.
Appium
Selenium::Remote::WebElement
Please report any bugs or feature requests on the bugtracker website https://github.com/appium/perl-client/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Daniel Gempesaw <gempesaw@gmail.com>
This software is copyright (c) 2014 by Daniel Gempesaw.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Appium, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Appium
CPAN shell
perl -MCPAN -e shell install Appium
For more information on module installation, please visit the detailed CPAN module installation guide.