Skip to main content

Robot Framework library for Android UI automation using uiautomator2

Project description

android_ui_automation

Python library for Android UI automation using uiautomator2, compatible with Robot Framework.

Installation

You can install the library via pip:

pip install android_ui_automation

Make sure uiautomator2 is installed automatically as a dependency.

Usage in Robot Framework

Settings

*** Settings ***
Library    android_ui_automation

Variables

*** Variables ***
${DEVICE}    emulator-5554
${APP}       com.example.app

Test Case Example

*** Test Cases ***
Open App And Click Button
    [Documentation]    Example test to open an app, click a button, type keys, and use system buttons
    Connect Device    ${DEVICE}
    Open App    ${APP}
    Type Keys    INPUT
    Click By Text    Confirm
    Press Back Button
    Close App    ${APP}

Features

  • Connect to Android devices/emulators
  • Launch and close apps
  • Wait for elements (text, XPath, UiSelector) to appear/disappear
  • Click elements by text, XPath, or UiSelector
  • Get and set text
  • Press keys or system buttons (Home, Back, Menu)
  • Fully compatible with Robot Framework keywords

Notes

  • All Python public methods are automatically available as Robot Framework keywords.
  • Some system buttons have friendlier aliases: Press Home Button, Press Back Button, Press Menu Button.
  • Set ROBOT_LIBRARY_SCOPE = GLOBAL to maintain device connection across multiple tests.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework_androiduiautomation-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file robotframework_androiduiautomation-0.1.0.tar.gz.

File metadata

File hashes

Hashes for robotframework_androiduiautomation-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b9b34750775cc13379dc76bada37687f3fe651f331a10c6ec9d76436aa0013d5
MD5 6c099d69e41c5ef4133b360faff2ab4c
BLAKE2b-256 8abfb2c2979a82e6c5b6a46ba1b51e6a55622aa2eb6dddabc3fffc2b7610c64e

See more details on using hashes here.

File details

Details for the file robotframework_androiduiautomation-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_androiduiautomation-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb93cbf0b9864949873c21171726fef0096c133c86abb0ec070a6f47152f5858
MD5 fcc1acd91c77358d40dd1424fea18070
BLAKE2b-256 5460bd7139ea274de93559c316df75eb0c816ce367e53878aac62276053b670d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page