mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
97d55e275d
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. |
||
---|---|---|
.. | ||
html-reporter | ||
playwright | ||
playwright-chromium | ||
playwright-core | ||
playwright-ct-core | ||
playwright-ct-react | ||
playwright-ct-react17 | ||
playwright-ct-solid | ||
playwright-ct-svelte | ||
playwright-ct-vue | ||
playwright-ct-vue2 | ||
playwright-firefox | ||
playwright-test | ||
playwright-webkit | ||
protocol/src | ||
recorder | ||
trace/src | ||
trace-viewer | ||
web | ||
.eslintrc-with-ts-config.js | ||
.eslintrc.js |