Current behavior
Using cy.get to select a <textarea> where the placeholder (and presumably other attributes) contains the substring " causes the error
(uncaught exception)Error: Syntax error, unrecognized expression: TEXTAREA[placeholder="""].
N.B., This bug only happens when running the test in the interactive test runner (GUI), but not when simply running the test from the command line.
Desired behavior
No response
Test code to reproduce
HTML file served up on 127.0.0.1/test.html (it's enough to have this line be the whole file, or you can put it in a more complex document)
<textarea placeholder='"' ></textarea>
Cypress spec causing the error
describe('Cypress error', () => {
it.only('test cypress', () => {
cy.origin('https://127.0.0.1', () => {
cy.visit('/test.html')
cy.get('textarea')
})
})
})
Cypress Version
12.14.0
Node version
Whatever version comes with https://download.cypress.io/desktop
Operating System
Linux, Ubuntu 22.04.2 LTS
Debug Logs
No response
Other
No response
Current behavior
Using
cy.getto select a<textarea>where theplaceholder(and presumably other attributes) contains the substring"causes the error(uncaught exception)Error: Syntax error, unrecognized expression: TEXTAREA[placeholder="""].N.B., This bug only happens when running the test in the interactive test runner (GUI), but not when simply running the test from the command line.
Desired behavior
No response
Test code to reproduce
HTML file served up on 127.0.0.1/test.html (it's enough to have this line be the whole file, or you can put it in a more complex document)
Cypress spec causing the error
Cypress Version
12.14.0
Node version
Whatever version comes with https://download.cypress.io/desktop
Operating System
Linux, Ubuntu 22.04.2 LTS
Debug Logs
No response
Other
No response