[1.1.0] getImageFilename not available with getMatches (along with other attributes) --- fixed 1.1.1 2016-03-26+

Bug #1556246 reported by Karl on 2016-03-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
Critical
RaiMan

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

RaiMan (raimund-hocke) on 2016-03-26
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.1
summary: - 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+
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers