sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37200
[Bug 1556246] [NEW] getImageFilename not available with getMatches (along with other attributes)
Public bug reported:
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
** 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/1556246
Title:
getImageFilename not available with getMatches (along with other
attributes)
Status in Sikuli:
New
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
Follow ups