sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37384
[Bug 1556246] Re: getImageFilename not available with getMatches (along with other attributes)
** Changed in: sikuli
Status: New => Fix Committed
** Changed in: sikuli
Importance: Undecided => Critical
** Changed in: sikuli
Assignee: (unassigned) => RaiMan (raimund-hocke)
** Changed in: sikuli
Milestone: None => 1.1.1
** Summary changed:
- getImageFilename not available with getMatches (along with other attributes)
+ [1.1.0] getImageFilename not available with getMatches (along with other attributes) --- fixed 1.1.1 2016-03-26+
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1556246
Title:
[1.1.0] getImageFilename not available with getMatches (along with
other attributes) --- fixed 1.1.1 2016-03-26+
Status in Sikuli:
Fix Committed
Bug description:
I am using Sikuli 1.1.0 (2015-10-05_17:07) on both Windows 10 64-bit
and Ubuntu Trusty 64-bit.
Procedure:
I used the following script to display the filename of a single matches. I looked at the attributes of what the getMatches returns and the getImageFilename doesn't work.
setAutoWaitTimeout(0)
try:
find("solid_color.png")
print "found",getLastMatch().getImageFilename()
findAll("solid_color.png")
mm = getLastMatches()
image = mm.next()
print "Did I find a Match", isinstance(image, Match)
print "-",image.getImageFilename()
md = dir(image)
for attribute in md:
print getattr(image, attribute)
#'Workaround'
#print len(md)
#for i in range(226,297):
# print getattr(image,md[i])
except:
pass
Output Message:
found C:\Users\User\Desktop\ImagePathTest.sikuli\solid_color.png
Did I find a Match? True
-
Additional information:
I used the workaround section to see continue getting attributes when the script stopped with incomplete information. The script broke on these attributes:
active
imageFilename
inactive
location
onScreen
onVanish
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1556246/+subscriptions
References