← Back to team overview

sikuli-driver team mailing list archive

[Bug 1804175] Re: [1.1.4] [request] ADBScreen: Select one of more devices

 

I have added a solution to define an ADBScreen object for an other
device than the first in the row, if more than one device/emulator is
detected by ADB-support.

Please test and give feedback

adb = ADBScreen.start()
if adb: # check for success
  # now adb is the first device in the row
  adb1 = adb.getScreenWithDevice(1)
  if adb1: # check for success
    # now adb1 should be the second device in the row
    print adb1
    # now you should be able to use adb1
  else:
    print "no device at position 1"
else:
  print "no devices"

If this works, I will add a feature to list the attached emulators/devices
  

** Changed in: sikuli
       Status: In Progress => Fix Committed

** Changed in: sikuli
   Importance: Medium => High

** Summary changed:

- [1.1.4] [request] ADBScreen: Select one of more devices
+ [1.1.4] [request] ADBScreen: Select one of more devices --- fix build #130 under test

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1804175

Title:
  [1.1.4] [request] ADBScreen: Select one of more devices --- fix build
  #130 under test

Status in Sikuli:
  Fix Committed

Bug description:
  Hello please help me. I have 2 android emulator but I cannot make the
  program select the second emulator. I already look at ADBScreen code
  but it does not include setDevice() that is why I cannot select the
  second emulator.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1804175/+subscriptions


References