2011-05-16 06:22:01 |
RaiMan |
description |
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 |
*** 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 |
|