xxxxxxxxxx
// This method narrows existing locator according to the options, for example filters by text. It can be chained to filter multiple times.
const rowLocator = page.locator('tr');
// ...
await rowLocator
.filter({ hasText: 'text in column 1' })
.filter({ has: page.getByRole('button', { name: 'column 2 button' }) })
.screenshot();