← Back to team overview

sikuli-driver team mailing list archive

[Question #141103]: How to get string of PS into FindFailed exception clause

 

New question #141103 on Sikuli:
https://answers.launchpad.net/sikuli/+question/141103

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

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