2011-05-06 23:29:11 |
anatoly techtonik |
bug |
|
|
added bug |
2011-05-07 08:17:17 |
RaiMan |
summary |
X-1.0rc2: TypeError: click(): expected 2 args; got 1 |
X-1.0rc2: Region spatial operators (nearby, left, right, ...) do not return a Region object |
|
2011-05-07 08:21:53 |
RaiMan |
sikuli: status |
New |
Confirmed |
|
2011-05-07 08:22:06 |
RaiMan |
description |
This gives the error above:
for ready in region.findAll(status):
ready.nearby(100)).click(ok)
Note that this also gives the same error:
for ready in region.findAll(status):
ready = Region(ready)
ready.nearby(100).click(ok)
Only this one works without `click(): expected 2 args; got 1` error:
for ready in region.findAll(status):
Region(ready.nearby(100)).click(ok) |
affected is the Python level
they seem to return a Region object from the Java level, that cannot be used the same way on the Python level
This gives errors when trying to use Region methods with these Regions (like Region.click())
*** workaround
cast the region to a Region object on the Python level, e.g.
Region(other_region.nearby(100)).click("some-image.png")
-------------------------------------------------------------------------------------------
This gives the error above:
for ready in region.findAll(status):
ready.nearby(100)).click(ok)
Note that this also gives the same error:
for ready in region.findAll(status):
ready = Region(ready)
ready.nearby(100).click(ok)
Only this one works without `click(): expected 2 args; got 1` error:
for ready in region.findAll(status):
Region(ready.nearby(100)).click(ok) |
|
2011-05-07 08:22:36 |
RaiMan |
summary |
X-1.0rc2: Region spatial operators (nearby, left, right, ...) do not return a Region object |
X-1.0rc2: Region spatial operators (nearby, left, right, ...) do not return a Region object --- workaround |
|
2013-02-21 13:14:53 |
RaiMan |
sikuli: status |
Confirmed |
Fix Committed |
|
2013-02-21 13:14:57 |
RaiMan |
sikuli: importance |
Undecided |
Low |
|
2013-02-21 13:15:00 |
RaiMan |
sikuli: assignee |
|
RaiMan (raimund-hocke) |
|
2013-02-21 13:15:02 |
RaiMan |
sikuli: milestone |
|
x1.0 |
|
2013-02-21 13:25:07 |
RaiMan |
tags |
|
fkt-region |
|
2013-02-21 16:03:53 |
RaiMan |
sikuli: importance |
Low |
High |
|
2013-05-07 11:53:34 |
RaiMan |
sikuli: importance |
High |
Critical |
|
2013-08-14 13:11:34 |
RaiMan |
sikuli: status |
Fix Committed |
Fix Released |
|