react$$
Overview
Use the react$$ command to find multiple React components on the page by their actual name, while filtering them by props and state.
warning
The react$ command only works in applications that use React v16.x.
Read more about React selectors in the recipe "How to use selectors".
Usage
await browser.react$$(reactComponentSelector, { props, state });
Command Parameters
| Name | Type | Description |
| reactComponentSelector | String | The React component selector. |
| props | Object | React properties the component should have. |
| state | Any or Any[] | React state the component should be in. |