How to get string of PS into FindFailed exception clause
Asked by
Vivek Ayer
Hi,
Suppose I have a try..except clause. This may seem like a stupid question, but I'm able to solve it. I have a screenshot that I know I can't find in the try clause. For logging purposes, how do I get the path of that screenshot once it enters the FindFailed except clause? Somehow use getLastMatch()??
i.e.,
try:
click(PS)
except FindFailed:
?? how to get str(PS) here??
Any help appreciated. Thanks!
Vivek
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:
To post a message you must log in.