xiaocong / uiautomator

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

Handling different instances of ADB #100

Open ClaudioRizzo opened 9 years ago

ClaudioRizzo commented 9 years ago

Hi, i am running different emulator within the same machine. I need to run uiautomator on the specific target in different tread. For exaplme I have two emulator runnin: emulator-5554 and emulator-5556. If a thread is using emulator-5556, within that thread I want to be able to use uiautomator. I tryed something like: device = Device('emulator-5556', 5555), but an exception is rised telling me: Multiple devices found, no default device set. Any help would be appreciated, Claudio

xiaocong commented 9 years ago

Please try device = Device('emulator-5556')