Activity log for bug #695720

Date Who What changed Old value New value Message
2010-12-30 15:47:10 jcppkkk bug added bug
2011-01-12 10:46:03 RaiMan summary [Sikuli X] "with Region:" and "Region.click()" fail when using region returned by App().window() X 1.0rc1: "with Region:" and "Region.click()" fail when using region returned by App().window()
2011-01-12 14:21:21 RaiMan 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() )
2011-01-19 11:46:35 RaiMan sikuli: importance Undecided Medium
2011-02-18 09:31:55 RaiMan 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
2011-02-18 09:32:42 RaiMan summary X 1.0rc1: "with Region:" and "Region.click()" with App().window() --- workaround X-1.0rc2: "with Region:" and "Region.click()" with App().window() --- workaround
2011-02-18 09:33:52 RaiMan 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 **** workaround **** type cast to Region: r = Region(App("application").window()) -------------------------------------------------------------------- # 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
2011-05-05 01:36:36 Tsung-Hsiang Chang sikuli: milestone x1.0-rc3
2011-05-06 23:09:53 anatoly techtonik bug added subscriber anatoly techtonik
2011-09-03 23:11:24 Tsung-Hsiang Chang sikuli: status New Fix Committed
2013-02-21 12:34:49 RaiMan sikuli: assignee RaiMan (raimund-hocke)
2013-02-21 12:34:53 RaiMan sikuli: milestone x1.0-rc3 x1.0
2013-02-21 12:35:06 RaiMan tags fkt-app
2013-02-21 16:10:54 RaiMan sikuli: importance Medium High
2013-02-21 16:11:29 RaiMan summary X-1.0rc2: "with Region:" and "Region.click()" with App().window() --- workaround X-1.0rc2: "with Region:" and "Region.click()" with App().window() --- workaround: use Region(...)
2013-02-24 16:12:44 RaiMan sikuli: importance High Medium
2013-02-24 16:12:52 RaiMan sikuli: status Fix Committed In Progress
2013-02-24 16:13:11 RaiMan sikuli: milestone x1.0