How to use ignore dome in smart UI in playwright using typescript
Hey Michael,
In this code snippet, we’re using page.evaluate
to perform a specific action, which, in this case, is the LambdaTest action smartui.takeScreenshot
. We’re customizing this action with arguments like
fullPage: true
, screenshotName: 'Screenshot 7'
, and ignoreDOM: {"id":["login-button"]}
.
This allows you to take a screenshot while specifying various parameters, including the full page capture and the exclusion of specific DOM elements with the id
attribute “login-button.” This level of customization is valuable for precise testing and reporting.
Feel free to reach out if in case any doubts