mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
7e6e5f0706
This PR fixes the react selector behavior to support components that are wrapped by the memo or forwardRef React builtin functions. Previously these components couldn't be selected. This PR fixes that behavior, enabling selecting those components. Current behavior: ``` const Foo = memo(() => <div id="foo_component" />); Foo.displayName = "Foo"; ... playwright.$("_react=Foo") -> undefined ``` Fixed behavior: ``` const Foo = memo(() => <div id="foo_component" />); Foo.displayName = "Foo"; ... playwright.$("_react=Foo") -> <div id ="foo_component" /> ``` |
||
---|---|---|
.. | ||
react15.html | ||
react16.html | ||
react17.html | ||
react18.html | ||
react_15.7.0.js | ||
react_16.14.0.js | ||
react_17.0.2.js | ||
react_18.1.0.js | ||
react-dom_15.7.0.js | ||
react-dom_16.14.0.js | ||
react-dom_17.0.2.js | ||
react-dom_18.1.0.js | ||
style.css | ||
vue2.html | ||
vue3.html | ||
vue_2.6.14.js | ||
vue_3.1.5.js |