I’m trying to ignore an element in the webpage using the command
driver.executeScript("smartui.takeScreenshot({\"screenshotName\":\"dom-screenshot\", \"ignoreDOM\":{\"id\":[\"head\",\"footer\"],\"class\":[\"login-form\",\"register-animation\"]}});");
given in smartUI documentation. But we were getting an error while executing the same command.
Hi Brett M,
Please try using the below command, it should work for you.
driver.executeScript(smartui.takeScreenshot,{"screenshotName":"dom-screenshot", "ignoreDOM":{"id":["head","footer"],"class":["login-form","register-animation"]}});