Getting text(date) from image that changes everyday
I am trying to get text from image. Text is the date that changes every hour. Sikuli is getting the text what is in image not on the application.
I am comparing the Text(Date) string with the my calculated date. As the Date from the application changes often my scripts are failing.
Here is the logic:
try {
String extractText = screen.
// extractText = extractText.
Date date1 = new SimpleDateForma
if (period.
} else if (period.
} else if (period.
}else {
}
} catch (FindFailed | ParseException error) {
}
extractText changes often in my application, I have to take screenshot when ever it changes and run my scripts. Can you please suggest me any other alternatives to get dynamic text from application instead of the captured image.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: