← Back to team overview

sikuli-driver team mailing list archive

[Bug 1270177] Re: [request] want a feature to select an image in a drop down list

 

Hello.

Well, maybe we can do it like this :

# It's just a suggestion 
def selectDropList(img1, img2):
    click(img1) # Open the drop down list
    reg = some function to find the region where some pixels change, corresponding where the drop down list
    while not reg.exists(img2): # Put the time-out to 0 : don't wait each time
        type(Key.PAGE_DOWN)
        if reg.change(): # check if some pixel change in the region
            return False # we reach the end of the list without find the item (img2)
    click(img2)
    return True # we find and click on the item

The most difficult thing to do for me, is to determine the region of the drop down list.
The second difficult point, is to create a function to see if some pixels change in a region, I suppose we can do it with the observe methods.

Hope it's help.
Regards.

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

Title:
  [request] want a feature to select an image in a drop down list

Status in Sikuli:
  Incomplete

Bug description:
  Hello.

  It's probably one of the most difficult thing to do with Sikuli.
  I have no solution at all to generalize this function to work every time.
  But I think it will be more than useful.

  -- system --
  Sikuli 1.0.1
  Win 7 (32)
  Java 1.7.51

  Regards.

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


References