playwright selector resolved to hidden. The code above interacts with shadow dom and I don't think the problem that @mamacdon reported is a regression from 1.8.1. Why does my JavaScript code receive a "No 'Access-Control-Allow-Origin' header is present on the requested resource" error, while Postman does not? The file path to save the image to. Playwright can select elements based on the page layout. const check = this.within(header).getByText("check") Value to set for the ,