X 1.0rc1: find(text).text() does not return same text

Bug #695650 reported by RaiMan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Low
RaiMan

Bug Description

all systems

when saying: (I suppose it is found)
t = "some-text"
m = find(t)
if m.text().strip() == t:
   print "OK: exact match"
else:
   print "Missed: one or more characters misread"

In many cases (not to say most) you will get the "Missed".

but when using:
...
if m.nearby(1).text().strip() == t:
...

you will get OK in most cases (not all - look bug 695616).
I guess this is a problem with some inconsistency in the internal use of the region boundary.

comment on text().strip():
is needed, because of trailing x'0A20' (linefeed blank) see bug 701005

Tags: fkt-text
RaiMan (raimund-hocke)
description: updated
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Undecided → Medium
RaiMan (raimund-hocke)
tags: added: fkt-text
Changed in sikuli:
status: New → In Progress
assignee: nobody → RaiMan (raimund-hocke)
importance: Medium → Low
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.