sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00020
[Bug 695720] [NEW] [Sikuli X] "with Region:" and "Region.click()" fail when using region returned by App().window()
Public bug reported:
# 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").window(0)
reg.highlight(2)
with reg:
sleep(1)
# Error Message: AttributeError: 'org.sikuli.script.Region' object has
no attribute '__exit__'
# 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").window(0)
reg.highlight(2)
reg.click( image1)
# Error Message: TypeError: click(): expected 2 args; got 1
** Affects: sikuli
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/695720
Title:
[Sikuli X] "with Region:" and "Region.click()" fail when using region returned by App().window()
Status in Sikuli:
New
Bug description:
# 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").window(0)
reg.highlight(2)
with reg:
sleep(1)
# Error Message: AttributeError: 'org.sikuli.script.Region' object has no attribute '__exit__'
# 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").window(0)
reg.highlight(2)
reg.click( image1)
# Error Message: TypeError: click(): expected 2 args; got 1
Follow ups
-
[Bug 695720] Re: X-1.0rc2: "with Region:" and "Region.click()" with App().window() --- workaround: use Region(...)
From: RaiMan, 2013-02-24
-
[Bug 695720] Re: X-1.0rc2: "with Region:" and "Region.click()" with App().window() --- workaround
From: RaiMan, 2013-02-21
-
[Bug 695720] Re: X-1.0rc2: "with Region:" and "Region.click()" with App().window() --- workaround
From: RaiMan, 2013-02-21
-
[Bug 695720] Re: X-1.0rc2: "with Region:" and "Region.click()" with App().window() --- workaround
From: Tsung-Hsiang Chang, 2011-09-03
-
[Bug 695720] Re: X-1.0rc2: "with Region:" and "Region.click()" with App().window() --- workaround
From: Tsung-Hsiang Chang, 2011-05-05
-
[Bug 695720] Re: X 1.0rc1: "with Region:" and "Region.click()" with App().window() --- workaround
From: RaiMan, 2011-02-18
-
[Bug 695720] Re: X 1.0rc1: "with Region:" and "Region.click()" fail (e.g. App().window() )
From: RaiMan, 2011-01-19
-
[Bug 695720] Re: X 1.0rc1: "with Region:" and "Region.click()" fail (e.g. App().window() )
From: RaiMan, 2011-01-12
-
[Bug 695720] Re: X 1.0rc1: "with Region:" and "Region.click()" fail when using region returned by App().window()
From: RaiMan, 2011-01-12
-
[Bug 695720] [NEW] [Sikuli X] "with Region:" and "Region.click()" fail when using region returned by App().window()
From: jcppkkk, 2010-12-30
References