What's the best way to locate elements in Playwright? Tips & tricks for playwright locate elements? or [b

18 Replies, 1306 Views

Short & sweet:
`page.locator('button >> text=Submit')` is my goto.

For debugging, `pwDEBUG` flag or just `pause()`.

Test IDs > all. Fight me.

Success rate: 80%. DOMs suck.

Messages In This Thread



Users browsing this thread: 1 Guest(s)