playwright/packages/playwright-core
Dmitry Gozman 97d55e275d
fix(locator): locator(locator) method uses internal:chain instead of >> (#24235)
Usually, we can just chain two locators with `>>` to implement
`Locator.locator(locator)`. However, this does not play nicely with more
advanced inner locators like `or` and `and`:

```ts
const child = page.locator('input').or(page.locator('button'));
page.locator('parent').locator(child);
```

One would expect the above to locate "input or button" inside a
"parent". However, currently it locates "input inside a parent" or
"button", because it's translated to `parent >> input >>
internal:or="button"`.

To fix this, we have to wrap inner locator into `internal:chain` and
query it separately from the parent.

Fixes #23724.
2023-07-14 12:21:45 -07:00
..
bin fix: Allow portable bash paths for systems including NixOS (#23889) 2023-07-03 06:27:06 -07:00
bundles chore: upgrade esbuild to 0.18.11 (#24123) 2023-07-10 22:35:05 +02:00
src fix(locator): locator(locator) method uses internal:chain instead of >> (#24235) 2023-07-14 12:21:45 -07:00
types feat(electron): support tracesDir option (#23947) 2023-06-28 16:32:16 -07:00
.eslintrc.js lint: prevent object string concatenation (#23172) 2023-05-19 15:17:43 -07:00
.npmignore chore: move pw-core utilsBundleImpl into own directory (#23706) 2023-06-15 20:16:47 +02:00
browsers.json feat(firefox): roll Firefox to 1420 (#24205) 2023-07-13 03:54:47 -07:00
cli.js chore: fix playwright-core cli (#23203) 2023-05-22 12:37:08 -07:00
index.d.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
index.js chore: sunset Node.js 12 (#16512) 2022-08-15 18:10:04 +02:00
index.mjs fix: export request from index.jsm (#13158) 2022-03-30 09:35:47 -07:00
package.json chore: cut 1.36.0 (#24104) 2023-07-07 13:01:17 -07:00
README.md chore: drop dependency on playwright-core in all our packages (#2318) 2020-05-21 13:18:15 -07:00
ThirdPartyNotices.txt chore: make trace viewer work over http (#23531) 2023-06-05 16:30:30 -07:00

playwright-core

This package contains the no-browser flavor of Playwright.