xiaocong / uiautomator

Python wrapper of Android uiautomator test tool.
MIT License
2.03k stars 643 forks source link

Connecting two devices using UiAutomator in Java #160

Open yadsandy opened 8 years ago

yadsandy commented 8 years ago

Can I connect two devices using UiAutomator in Java, if yes then how should I differentiate them. Please share sample codes if anybody have.

Kozubi commented 8 years ago

from uiautomatoe import Device device_a = Device(device_number) device_b = Device(device_number) The number is that Id which you can get from running "adb devices" command.