Contributions
Screenshots - Selenium JSON script - don't fail when element doesn't exist
Hi, I'm running a screenshots test with a Selenium JSON script (added below). On some browsers, that element doesn't exist at the time of step execution. Those browser results show "Screenshot Failed - Selenium Script Error". The question is how I can configure the script not to fail in that case, so that I still get a screenshot result. Thanks. script: { "type": "script", "seleniumVersion": "2", "formatVersion": 2, "steps": [ { "type": "clickElement", "locator": { "type": "css selector", "value": ".cmplz-close" } } ], "data": { "configs": {}, "source": "none" }, "inputs": [], "timeoutSeconds": 60 }Solved1.4KViews0likes1Comment