← Back to team overview

sikuli-driver team mailing list archive

[Bug 583090] Re: X-1.0rc2: find().click(): 2nd arg of click() not optional

 

** Changed in: sikuli
       Status: Fix Committed => Fix Released

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

Title:
  X-1.0rc2: find().click(): 2nd arg of click() not optional

Status in Sikuli:
  Fix Released

Bug description:
  *** bug still valid with X-1.0rc2

  Calling click on a Match object requires a modifier as second
  argument:

  find(img1).click(img2, 0)

  The following does not work:

  find(img1).click(img2)

  TypeError: click(): expected 2 args; got 1

  But this does:

  Region(find(img1)).click(img2)

  According to the documentation, Match is a subclass of Region and
  therefore the modifier argument for click should be optional.

  The problem is that find(img1) returns an instance of
  edu.mit.csail.uid.Match, whereas Region(find(img1)) is a class
  instance of sikuli.Region.Region.

  Sikuli version: 0.10.0
  OS version: Windows XP SP3

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