sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #10879
Re: [Question #199027]: text search problem when .text() proves it is there
Question #199027 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/199027
Status: Open => Answered
RaiMan proposed the following answer:
--- additional A at beginning of Region.text()
Might be, that the region scnAct3 contains some grafic information left of the text "Add Work", that is interpreted as an "A"
--- scnAct3.click("work")
I tried this with the text in your above question like this
r = selectRegion()
print r.text()
r.hover("Work")
and this works.
But if I do the same with "Overview" at the top of this page, it fails with the click, but
r.hover("verview")
works.
Since the current OCR is very dependent on the fonts and
fore-/background colors, I guess it is a problem with the capital letter
at the beginning of the search text.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.