-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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.type() on a DIV #1686
Comments
Cypress allows typing into elements with a I suspect that the library you are using is listening to or triggering events that Cypress is not handling correctly. Could you provide a reproducible example? Also, as workarounds, try playing with the |
This should be fixed after PR #2016 is merged |
I have an app which is a text editor and the DOM is formatted using regular elements (h1, div, span) and they become actionable when clicked and the user can type as in a regular textarea or input . Cypress won't let me type on it, though.
I tried using force, with no success.
Is there any way to make it work or I'm stuck with Dusk? :(
EDIT:
I tried the following solution but it only types the first character on the desired field and the rest switches to another one.
Here's my DOM and how it should work
https://imgur.com/fCjZLRK
Here's how it's happening with Cypress
https://imgur.com/Oynzlrd
And here's my current code
The text was updated successfully, but these errors were encountered: