← Back to team overview

sikuli-driver team mailing list archive

[Bug 1242584] Re: Region getLastMatch() problem

 

getLastMatch() is a Region method and has to be qualified with the
specific region, if the region is not SCREEN.

#but if I use region...
find("logo.png")
reg = Region(0,0,1366,768)
reg.find("name.png")
name = reg.getLastMatch().getTarget()
hover(name) #hover under logo.png

** Summary changed:

- Region getLastMathc() problem
+ Region getLastMatch() problem

** Changed in: sikuli
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1242584

Title:
  Region getLastMatch() problem

Status in Sikuli:
  Invalid

Bug description:
  find("logo.png")
  find("name.png")
  name = getLastMatch().getTarget()
  hover(name) #this work perfect and hover name.png

  #but if I use region...
  find("logo.png")
  Region(0,0,1366,768).find("name.png")
  name = getLastMatch().getTarget()
  hover(name) #hover under logo.png

  Why I cant use Region with getLastMatch()?

  
  Also with exists:

  exists("logo.png")
  exists("name.png")
  name = getLastMatch().getTarget()
  hover(name) #this work perfect and hover name.png

  #but if I use region...
  exists("logo.png")
  Region(0,0,1366,768).exists("name.png")
  name = getLastMatch().getTarget()
  hover(name) #hover under logo.png

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1242584/+subscriptions


References