cypress-react-selector icon indicating copy to clipboard operation
cypress-react-selector copied to clipboard

Be able to compare props.children [featrue request]

Open Twiggeh opened this issue 4 years ago • 1 comments

I am not sure whether crs can compare children props, but it doesn't seem like it does.

I tried selecting a specific button with .react('Button', { props: { children: 'Upload !' } }, but it couldn't find anything, looking at the getReact output, there is no children in the logged props object.

Would be cool to be able to select buttons and stuff by the string they display :D

Twiggeh avatar Feb 16 '21 23:02 Twiggeh

+1 on this feature request.

beckerrobin avatar Mar 31 '21 08:03 beckerrobin