cy.type() can only be called on textarea or text:
See original GitHub issueHey all. At first, sorry for my english, its bad need to type text in the form. How to do this not only with the cy.type command. Is it possible?
Ubuntu 16.04 cypress version 2.1.0
/code cy.get(‘.textField_question-0-155’).type(‘sad’) /code `` What is problem? Thanks
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
type - Cypress Documentation
The text to be typed into the DOM element. Text passed to .type() may include any of the special character sequences below. These...
Read more >Cypress error. cy.type() failed because it requires a valid ...
How to type text by cypress cy.type in <ion-input> Input type? ... How to address Cypress (cy.type() can only be called on a...
Read more >Solve Flake In Cypress Typing Into An Input Element
The cy. type command simply waits for the input element to be enabled (it is a built-in actionability check) before typing. You can...
Read more >cy.type() failed because it targeted a disabled element
This error should never occur without a valid reason. We have analyzed the tests and made sure that the element is ready for...
Read more >cypress-io/cypress - Gitter
error = CypressError: cy.type() can only be called on a single element. Your subject contained 16 elements. thanks @k.vinodmathew_gitlab hope you can help ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Use Cypress to select the div with
contenteditable="true"
. For example:cy.get('[contenteditable]').type('some text")
In your case, usefind
to select something inside another selector:Related proposal to turn off validation checking with type: https://github.com/cypress-io/cypress/issues/586