The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Appium::Element - Representation of an Appium element

VERSION

version 0.0804

SYNOPSIS

    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');

DESCRIPTION

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.

METHODS

tap

Tap on the element - an alias for S::R::WebElement's 'click'

set_value ( $value )

Immediately set the value of an element in the application.

    $elem->set_value( 'immediately ', 'without waiting' );

SEE ALSO

Please see those modules/websites for more information related to this module.

BUGS

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.

AUTHOR

Daniel Gempesaw <gempesaw@gmail.com>

COPYRIGHT AND LICENSE

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.