I am struggling to reproduce this one - perhaps need more details. Locating by XPath does not pierce shadow roots. You only need to type characters if there is special keyboard handling on the page. The locator.press() method focuses the selected element and produces a single keystroke. Ensure that element is a checkbox or a radio input. This method clicks the element by performing the following steps: button "left"|"right"|"middle" (optional)#. // Can use it in any methods supporting selectors. Use the page.getByText() method to locate an element in a list by it's text content and then click on it. Note that many html elements like