E
E
@yury-s that's a very faulty assumption both test-dataid and id are equal if they are dynamic or hard coded depends on the framework and how they are set up. Usually...
> If you're using Page Objects, here is the simplest solution we've used: > > 1. Import 'selectors' from playwright/test > 2. add this setting: selectors.setTestIdAttribute('id') > 3. use page.getByTestId('your...
@mprykhodko that works thanks, but we have actual data-testids in some parts but it's good to know. @yury-s the simplest solution would be to add getById() as another method and...
> Would really like to see getById()... An element's ID and date-testId are and should be two different things, each with different semantics. If data-testId is the same then would...
broke getbyid into a new ticket, whether codegen changes are implemented or not, a getbyID function should be part of the API. https://github.com/microsoft/playwright/issues/19763
Also it seems when none of the getbymethods apply the codegen falls back to .locator, or it randomly decides to use .locator i don't know. The beauty is even when...
this is what we have in our app btw: `const app = next({ dev, dir: "./src" }); const server = express();` I'm very interested in this, let me know if...
it's been over a year is this ever going to be worked on? We need this also as we want to load different repos in the container, that might live...