Robot Framework library for Android 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 robotframework-androiduiautomation
Or install locally for development:
git clone <your-repo-url>
cd robotframework-androiduiautomation
pip install -e .
Make sure uiautomator2 is installed automatically as a dependency.
Usage in Robot Framework
Settings
*** Settings ***
Library AndroidUiAutomation
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 = GLOBALto maintain device connection across multiple tests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file robotframework_androiduiautomation-0.1.5.tar.gz.
File metadata
- Download URL: robotframework_androiduiautomation-0.1.5.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc544ce858b0204fbf6cfb8916cbb71f419574418786e4e067145e7ea7fd2700
|
|
| MD5 |
ea08da3c09faa07756b68eb5131c50d5
|
|
| BLAKE2b-256 |
6047eef669545763edbb9d781fbc754df272efd13da3c89c1a2d41c6062036ab
|
File details
Details for the file robotframework_androiduiautomation-0.1.5-py3-none-any.whl.
File metadata
- Download URL: robotframework_androiduiautomation-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ac4e9313aaa5c7d4dd8a29b27d174eb8614f9f67332e6ca75bd66180aa5e136
|
|
| MD5 |
0a32899b0e4c25ff92eb23f14ccb1295
|
|
| BLAKE2b-256 |
57171b41432fd101b91633bf97e837a3a80c1499d1f5047a46e5db48b6d57d25
|