Sikuli not entering text properly mising some text while typing

Asked by Anji R

I'm new to Sikuli and I'm having a problem with entering text into a textfield. I'm using the sikuli using version sikulixapi 2.0.4 within java using Eclipse IDE to write testNG-based tests.

My problem is as follows:

I want to enter a text in a textfield using a previously taken screenshot as below

Screen scr = new Screen();
pattern text1 = path of image;
scr.type(text1"testing");

during execution it is always missing the first letter i.e entering "esting" in the test filed instead of "Testing". it happens for all the fields for most of the time. .

i tried giving some time before using type command for entering test data even then also it is missing the first letter.

Can you please help me

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
masuo (masuo-ohara) said :
#1

Did you try paste command instead of type command?

Revision history for this message
Anji R (anji2008) said :
#2

Thanks for the quick answer.

i will try with paste command and update the thread.

Revision history for this message
Anji R (anji2008) said :
#3

Hi
   using paste command it is working fine. if there is any issue i will update

Can you help with this problem?

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

To post a message you must log in.