I want to be able to verify the presence of an image in a script but I don’t want the failure to stop the script execution. My code looks like the following:
set the assertionBehavior to “warning”
BeginTestCase “verify image x exists”
Assert that ImageFound(5, “imageX”)
EndTestCase “verify image x exists”
Is there a way to capture a screenshot only if the assertion fails? What is the proper way to do this?