[1.1.x] Region.paste return 0 despite done --- fixed 1.1.2 2017-07-14

Bug #1698094 reported by David ENJOLRAS
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

With SIKULIX 1.1.2 2017-06-04

notepad = find("NotePad.png")
print("notepad: %s" % notepad )

PastResult = notepad.paste("test")
print("PastResult: %d" % PastResult )

=====================
The text "test" is well added in the NotPad
output is :

notepad: M[21,553 376x158]@S(S(0)[0,0 1680x1050]) S:1,00 C:209,632 [422 msec]

PastResult: 0

=====================

Given documentation, return should be "1"

paste([PSMRL], text)
Paste the text at a click point.
...
Returns:
the number 1 if the operation could be performed, otherwise 0 (integer null), which means, that because of some reason, it was not possible or the click could be performed (in case of PS may be not Found).

RaiMan (raimund-hocke)
summary: - Region.paste return0 despite done
+ [1.1.x] Region.paste return 0 despite done
Revision history for this message
RaiMan (raimund-hocke) wrote :

thanks for finding - fixed

Changed in sikuli:
status: New → Fix Committed
summary: - [1.1.x] Region.paste return 0 despite done
+ [1.1.x] Region.paste return 0 despite done --- fixed 1.1.2 2017-07-14
Changed in sikuli:
importance: Undecided → Critical
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.