playwright/packages/playwright-core
Dmitry Gozman f587a43932
feat(locator): "has" option (#11411)
This introduces `locator('div', { has: locator })` syntax that matches elements containing other elements.
Can be used together with `hasText`.

Internally, has selector engine takes an inner selector escaped with double-quotes:
`div >> has="li >> span >> text=Foo" >> span`.
2022-02-02 16:55:50 -08:00
..
2022-02-02 16:55:50 -08:00
2021-10-11 16:52:17 +02:00
2021-10-11 16:52:17 +02:00
2021-10-11 16:52:17 +02:00
2021-10-11 16:52:17 +02:00

playwright-core

This package contains the no-browser flavor of Playwright.