sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #08299
Re: [Question #185286]: Need the code to give input to the fields
Question #185286 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/185286
Status: Open => Answered
RaiMan proposed the following answer:
Ok, might be - I have no experiences with this emulator stuff ;-)
So you might use the fact, that the password field is below the username
field in a specific pixel distance:
click("1327062380260.png"); wait(1)
type("123")
wait(1)
pw = getLastMatch().getCenter().below(50)
type(pw, "123")
--- below(50)
This resulting click point should be somewhere in the password field. You might measure the appropriate distance in the IDE's preview feature or any other tool that shows pixel locations on the screen.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.