How to stop capturing screenshot for Warning steps


#1

I have many steps in my test with step failure handling as “FailureHandling.OPTIONAL” and it throws warning when failed. But, it still captures a screenshot. Is there a way to stop capturing screenshot for Warnings ?
Capture only when step fails.


#2

Team, is it possible to stop capturing screenshots for warning steps?