← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #196676]: How to insert tomorrows date?

 

Question #196676 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/196676

RaiMan posted a new comment:
This is more secure, to give the editor window some time to get ready
for input:

import datetime
tomorrow = datetime.date.today() + datetime.timedelta(1)
openApp("notepad") # open a new notepad window and give focus
wait(2)
type(str(tomorrow)) # has to be casted to String

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.