with region: problem

Asked by Jonathan Antognini

Hi all,

i define one region, and try use:
reg = find(image)
with reg:
   button = find(image_button)
   hover(button)

something like that, and not work me.
But if i define one region with "define region" prividing by ide work. that means use:

with region: #region is a region take with ide
   button = find(image_button)
   hover(button)

i'm using ubuntu 10.10

thanks =)

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

a bug again ;-)

rc1: with only works with "real" regions (primary class)

so
reg = find(image)
with Region(reg):
  button = find(image_button)
  hover(button)

should work.

Revision history for this message
Jonathan Antognini (jantogni) said :
#2

Thanks RaiMan, that solved my question.