← Back to team overview

sikuli-driver team mailing list archive

[Question #287511]: Date input

 

New question #287511 on Sikuli:
https://answers.launchpad.net/sikuli/+question/287511

I have a date file which is format automatically when you type like 10101990 which will become 10/10/1990.  when the date field is empty, it looks like this __/__/____. 

I tried following code:

Pattern image3 = new Pattern(".\\image\\dob.png");

m_screen.wait(image3, 2.0);
		
m_screen.click(image3);
m_screen.type(image3, "10101990")

or

m_screen.click(image3);
m_screen.type(image3, "10/10/1990")

or

m_screen.click(image3);
m_screen.paste(image3, "10101990")

I can see the cursor was at the beginning of the textbox, but after type or paste the date field looks like __/__/1010.

Any idea?

Thanks


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.