I'm trying to insert a json with a cypress test:
cy.get('#exampleFormControlInput3').type("{'id':1904}", { commands: false })
but when I go to insert it it gives me the following error:

i modified the cypress.json as follows:
{
...
...
...
"chromeWebSecurity": false,
"parseSpecialCharSequences":false
}
As mentioned cypress docs writing {{} types {. So it should look like:
cy.get('#exampleFormControlInput3').type("{{}'id':1904}")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With