sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55156
Re: [Question #690810]: Sikuli FindFailed error after waiting for an image Pattern on the screen
Question #690810 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690810
RaiMan proposed the following answer:
The images you sent me all work on the given screenshot shown in a
viewer on Windows and Mac, but with a rather low score (0.75 to 0.85).
The image with only the text "Username" should work in any case. The
others might be critical caused by the blinking cursor in the text
field.
The most secure way to get the input focus into a text field is to work with an image that is found with a high score and then use the term
text1 = Pattern(reliableImage).targetOffset(x, y)
This can easily be done in the IDE preview.
start with
username = <shot of the text Username>
then add the targetoffset using Preview
and finally
type(username, "some text")
same for the password field.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.