Reference: https://playwright.dev/java/docs/locators#set-a-custom-test-id-attribute My application uses `data-test` as a testIdAttribute No I need to define it as CSS or xPath.