X-1.0rc2: "with Region:" and "Region.click()" with App().window() --- workaround: use Region(...)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Medium
|
RaiMan |
Bug Description
**** workaround ****
type cast to Region:
r = Region(
-------
# I use Sikuli X on windows XP.
# The Grouping Method Calls (with Region:) works when using Region()
def Region_with():
reg = Region(468,212, 344, 570)
reg.highlight(2)
with reg:
sleep(1)
# But fails when using App().window()
def window_with():
reg= App("SOMEAPP"
reg.highlight(2)
with reg:
sleep(1)
# Error Message: AttributeError: 'org.sikuli.
# Simalar problem happend on reg.click(), works for Region()
def Region_click():
reg = Region(468,212, 344, 570)
reg.highlight(2)
reg.click(image1)
# But fails on App().window()
def window_click():
reg= App("SOMEAPP"
reg.highlight(2)
reg.click( image1)
# Error Message: TypeError: click(): expected 2 args; got 1
summary: |
- [Sikuli X] "with Region:" and "Region.click()" fail when using region + X 1.0rc1: "with Region:" and "Region.click()" fail when using region returned by App().window() |
summary: |
- X 1.0rc1: "with Region:" and "Region.click()" fail when using region - returned by App().window() + X 1.0rc1: "with Region:" and "Region.click()" fail (e.g. App().window() + ) |
Changed in sikuli: | |
importance: | Undecided → Medium |
summary: |
- X 1.0rc1: "with Region:" and "Region.click()" fail (e.g. App().window() - ) + X 1.0rc1: "with Region:" and "Region.click()" with App().window() --- + workaround |
summary: |
- X 1.0rc1: "with Region:" and "Region.click()" with App().window() --- + X-1.0rc2: "with Region:" and "Region.click()" with App().window() --- workaround |
description: | updated |
Changed in sikuli: | |
milestone: | none → x1.0-rc3 |
Changed in sikuli: | |
status: | New → Fix Committed |
Changed in sikuli: | |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | x1.0-rc3 → x1.0 |
tags: | added: fkt-app |
Changed in sikuli: | |
importance: | Medium → High |
summary: |
X-1.0rc2: "with Region:" and "Region.click()" with App().window() --- - workaround + workaround: use Region(...) |
Changed in sikuli: | |
importance: | High → Medium |
status: | Fix Committed → In Progress |
milestone: | x1.0 → none |