playwright/packages/playwright-core/src/server/common
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
..
cssParser.ts chore: move some files out of server/common (#11466) 2022-01-18 19:13:51 -08:00
cssTokenizer.d.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
cssTokenizer.js chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
README.md chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
selectorParser.ts feat(locator): "has" option (#11411) 2022-02-02 16:55:50 -08:00
utilityScriptSerializers.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00

Files in this folder are used both in Node.js and injected environments, they can't have dependencies.