← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #270553]: How to capture errors when starting Sikuli from C# (Selenium)?

 

Question #270553 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/270553

    Status: Answered => Solved

domocoma confirmed that the question is solved:
Thank you for the quick reply, RaiMan. I don't know how to handle the
exit codes in C# as I'm rather new to all of this in general, but your
examples gave me a great idea, to use:

try:
    # the code that might fail with an exception
except:
    App.close("Firefox")

This will kill Firefox and cause Visual Studio to throw an exception
when trying to close the webdriver, making the test fail.

Thank you!

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