Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cy.select() fails if option value contains a quotation mark #29213

Closed
davidfurey opened this issue Mar 28, 2024 · 1 comment · Fixed by #29214
Closed

cy.select() fails if option value contains a quotation mark #29213

davidfurey opened this issue Mar 28, 2024 · 1 comment · Fixed by #29214

Comments

@davidfurey
Copy link
Contributor

davidfurey commented Mar 28, 2024

Current behavior

For an option:

 <select id="select-maps" name="maps">
  <option value="&quot;test&quot;">test</option>
</select>

When you attempt:

cy.get('select[name=maps]').select('"test"')

The result is:

Timed out retrying after 4000ms: Syntax error, unrecognized expression: option[value=""test""]

Desired behavior

Option is selected

Test code to reproduce

Incoming pull request with test case

Cypress Version

13.7.1

Node version

v18.17.1

Operating System

macOS 13.6

Debug Logs

No response

Other

No response

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 2, 2024

Released in 13.7.2.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.7.2, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Apr 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants