abhinaba-ghosh / cypress-react-selector

:zap: cypress plugin to locate react elements by component, props and state

Home Page:https://www.cypress.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I change state of component by selector?

andrei0807 opened this issue · comments

I want to change state of component by this select.
I found component and I know how to change props.
and I got state by getCurrentState. but I don't know how to change state value.
Please help me.

Hi @andrei0807 thanks for bringing this up. can you let me know how you are changing/altering the props? I can try replicating the same with state.

Thanks for your response.
image
image
I found like component.
I am going to change tabIndex status.
How can I do it?