NAME

Appium::Android::CanPage - Display all interesting elements for Android, useful during authoring

VERSION

version 0.0804

METHODS

page

Display a list of the currently visible elements that have at least one of the following attributes: text, resource-id, or content-desc. This is a shadow of arc's own page command, mimicked here for its usefulness during test authoring.

Think of it like a lo-fi version of Chrome's Inspect element.

$appium->page;
# android.view.View
#   resource-id: android:id/action_bar_overlay_layout
#
# android.widget.FrameLayout
#   resource-id: android:id/action_bar_container
#
# android.view.View
#   resource-id: android:id/action_bar
#
# android.widget.ImageView
#   resource-id: android:id/home
#
# android.widget.TextView
#   text: API Demos
#   resource-id: android:id/action_bar_title
#
# android.widget.FrameLayout
#   resource-id: android:id/content
#
# android.widget.ListView
#   resource-id: android:id/list
#
# android.widget.TextView
#   text: Accessibility
#   resource-id: android:id/text1
#   content-desc: Accessibility
# ...

This behavior is only prepared for native apps; we've no idea what'll happen if you use this on a webview and/or with chromedriver.

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.