poco.drivers.android.uiautomation module
- class AndroidUiautomationPoco(device=None, using_proxy=True, force_restart=False, use_airtest_input=False, **options)[源代码]
基类:
Poco
Poco Android implementation for testing Android native apps.
- 参数:
device (
Device
) –airtest.core.device.Device
instance provided byairtest
. leave the parameter default and the default device will be chosen. more details refer toairtest doc
using_proxy (
bool
) – whether use adb forward to connect the Android device or notforce_restart (
bool
) – whether always restart the poco-service-demo running on Android device or notoptions – see
poco.pocofw.Poco
示例
The simplest way to initialize AndroidUiautomationPoco instance and no matter your device network status:
from poco.drivers.android.uiautomation import AndroidUiautomationPoco poco = AndroidUiautomationPoco() poco('android:id/title').click() ...