trying to automate selecting date on a calendar on a webpage
I'm currently parsing a date with originally looks like this:
End Date: 12/04/14(mm/dd/yy)
then i parse it so i have the values
endday = time.strftime('%d', rawdate)
endmth = time.strftime('%m', rawdate)
endyr = time.strftime('%Y', raw date)
The calendar looks like this:
http://
Then first selecting the months I'm doing something like this at least for the months:
i use key.home to go to the top then use a if statement
if endmth.
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
elif endmth.
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
type(Key.UP)
elif endmth.
So far that works for months and I assume it would work for years but the years menu goes from 1980 to 2020
So I imagine it will be too cumbersome for an if statement
I'm wondering if there's something I can do that's more elegant?
And as for selecting a date on the calendar I have no clue how I'm going to accomplish it because the only way is to click the day
Any help or suggestions or better yet examples is appreciated :-)
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask dude for more information if necessary.