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

Handle select tags with select() method #161

Open
aboudard opened this issue Feb 11, 2021 · 0 comments
Open

Handle select tags with select() method #161

aboudard opened this issue Feb 11, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@aboudard
Copy link

Hello,

Experimenting with this great extension, I had kind of a bug with select elements in my test page.

  • Environement : Windows 10
  • Version Cypress : 6.2.1 / open gui mode
  • Application : Angular 10

The widget is a simple select element
image

Code generated
cy.get('#typePolice').click(); cy.get('#typePolice').type('1: 1'); cy.get('#typePolice').click();

Error message from Cypress
cy.click() cannot be called on a <select> element. Use cy.select() command instead to change the value.
image

After modification, I use the select method
cy.get('#typePolice').select('Globale');

If I can contribute, I'd be happy to help.

Alain

@adam-stover adam-stover added the enhancement New feature or request label Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants