client.implements.uiautomator2¶
uiautomator2 ¶
类:
| 名称 | 描述 |
|---|---|
UiAutomator2Impl |
|
UiAutomator2Impl ¶
Bases: Screenshotable, Commandable, Touchable, SimpleInputDriver
方法:
| 名称 | 描述 |
|---|---|
screenshot |
截图 |
detect_orientation |
检测设备方向 |
launch_app |
启动应用 |
current_package |
获取当前应用包名 |
click |
点击屏幕 |
swipe |
滑动屏幕 |