Robot Framework library for Android automation using uiautomator2
Project description
android_ui_automation
Python library for Android UI automation using uiautomator2, fully compatible with Robot Framework.
Installation
Install from PyPI:
pip install robotframework-androiduiautomation
Or install locally for development:
git clone https://github.com/ValterIversen/android_ui_automation
cd android_ui_automation
pip install -e .
uiautomator2 will be 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 or XPath) to appear/disappear
- Click by text or XPath
- Get and set text
- Type keys
- Press Android system buttons (Home, Back, Menu)
- Fully compatible with Robot Framework keyword-style usage
- All public Python methods automatically become RF keywords
Notes
- System buttons have friendly aliases:
Press Home ButtonPress Back ButtonPress Menu Button
📌 Example Project (Base Template)
To see a complete working example using this library, check out the base project:
👉 https://github.com/ValterIversen/RobotFramework-UiAutomatorLibrary
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.9.tar.gz.
File metadata
- Download URL: robotframework_androiduiautomation-0.1.9.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eae5c753b0704a240218b34310a7e58ac378ce91401f4e43075891dfae05722b
|
|
| MD5 |
2c286214d02355db202fd7419cf10c61
|
|
| BLAKE2b-256 |
a081a662513f143ec36a57d4779a40c3f98f607d1a211a6799490f19757012cc
|
File details
Details for the file robotframework_androiduiautomation-0.1.9-py3-none-any.whl.
File metadata
- Download URL: robotframework_androiduiautomation-0.1.9-py3-none-any.whl
- Upload date:
- Size: 5.4 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 |
433e4a7e3cef3970292dc19014e3d23925e786742a4b79864978face37594320
|
|
| MD5 |
221073214e91f68f6a2e00594e8b8f15
|
|
| BLAKE2b-256 |
736d006b9fb287f3adbf831dd0b53022ce5ad2db96eaa1f1c7be6b99778f44e9
|