when saying: (I suppose it is found)
t = "some-text"
m = find(t)
if m.text() == t:
print "OK: exact match"
else:
print "Missed: one or more characters misread"
In most cases (not to say all) you will get the "Missed".
but when using:
...
if m.nearby(1).text() == 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.
all systems
when saying: (I suppose it is found)
t = "some-text"
m = find(t)
if m.text() == t:
print "OK: exact match"
else:
print "Missed: one or more characters misread"
In most cases (not to say all) you will get the "Missed".
but when using:
...
if m.nearby(1).text() == 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.