← Back to Discord Forum

Mask all cells in visual validation

dainese1097posted in #help-playwright
Open in Discord

I have a challenge where the data on my page is not wrapped by a container to allow for easy selection to mask it. Is there a way to mask all elements by role e.g. await expect(page).toHaveScreenshot('targetedNotification.png', { fullPage: true, mask: page.queryAllByRole('cell') });

This thread is trying to answer question "Is there a way to mask all elements by role without a container?"

0 replies
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.