captureScreenshotOnFailure