calender selection for mobile apps using sikuli

Asked by swetha

Hi,

I am doing automation testing for airlines project for Andoid mobile apps
1.I have a task to automate calender selection for android phone using Sikuli.
 is there any logic to select the dates instead of giving the screenshots to scripts

2.I have a table with list of cells,I need to automate the task like clicking on each cells takes to other screen then navigate to back and the loop continues
Can I have logic here pls.As I have no python knowledge

Any help appreciated

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
RaiMan (raimund-hocke) said :
#1

at 1:
Sikuli 10.2: you have to evaluate the geometrics of your calendar image and the use a calculated Location for a day to select
Sikuli X: You may be successful in saying click("26"). If interested, just send me a screenshot.

at 2:
in meta code:
# bring the base image up somehow
for cell in table:
   click(Location(cell))
   wait(image-of-other-screen)
   click(back-button)
   wait(base-image)

- Location(cell) has to be calculated somehow from the cell info in table
- the waits should be written as - if you don't want exception FindFailed to stop your script.
if not exists(image, max-waiting-time):
    # some actions
    break # or continue - depends on wether the loop can go on with the next cell

Can you help with this problem?

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

To post a message you must log in.