How to fill the text field using Sikuli

Asked by yashaswi

Hi all I'm new to Sikuli.
Found this to be apt for UI automation.
I need to create 10 users at a time by only changing the text fields.
Can you please tell me how to accomplish the same

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Roman Podolyan (podolyan-roman) said :
#1

1) Read the documentation - http://sikuli.org/docx/
2) Pay attention to selecting Regions, and to Click function (that's the way to get cursor into text field) and write code to get cursor into the needed field
3) Use special keys emulation (Del, Backspace, Ctrl-A ... whatever) to clean the field if needed (http://sikuli.org/docx/keys.html )
4) Use 'type' or 'paste' functions to get user information in fields. (http://sikuli.org/docx/region.html#acting-on-a-region)
5) Again use Click to press button to create a user
6) Repeat

Here is an example, written by me for logging to one site in browser via Facebook :
http://i42.tinypic.com/21orpcp.png

I added some explaining comments to it.

Revision history for this message
Roman Podolyan (podolyan-roman) said :
#2

Of course, step 6 should be performed by wrapping all previous in some loop like "For i in Range(10):"

Can you help with this problem?

Provide an answer of your own, or ask yashaswi for more information if necessary.

To post a message you must log in.