question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot type into field

See original GitHub issue

Operating System: Solus 3.999 shannon Cypress Version: 2.1.0 Browser Version: Electron 59

Is this a Feature or Bug? This is a bug.

Current behavior:

I have an input field:

I get the error:

CypressError: cy.type() can only be called on textarea or :text. Your subject is a:

Desired behavior:

This is an input element, so I would expect the input to be entered.

How to reproduce: Create an input, and try type().

Test code:

    cy.get(selector)
        .click()

    cy.get(selector)
        .type(02011999 + '{enter}')

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kucebcommented, Dec 18, 2018

This should be fixed as of 3.0.3 along with #1241, as we read of the type property instead of the attribute

0reactions
hypeofpipecommented, Apr 9, 2018

@jennifer-shehane It is fixed by adding a type to it. Nevertheless, I think Cypress should give the opportunity to type in those fields (with a null type).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot type into text input fields in Chrome and Firefox browsers
Cannot type into text fields in Chrome & Firefox · 1] Disable Hardware Acceleration. Cannot type into text fields in Google Chrome and...
Read more >
Fix: Can't Type into Text Fields on Some Browsers - Appuals
Method 5: Enabling Screen lock via on-screen keyboard · Press Windows key + R to open up a Run dialog box. Then, type...
Read more >
Cannot type in input text field - html - Stack Overflow
You may solve this by adding css attribute #textBox{ z-index:1000; } . It seems that viewport block is too big and overflowing the...
Read more >
Cannot type into any field including search bar or Windows ...
1. Open the command prompt with elevated access (Administrator Access) · 2. Type the below command and hit enter every after command. net...
Read more >
How to Create a Text Box that a User Can't Type Inside Of
This text box, just like the one with the READONLY attribute, does not allow a user to type into this field. However, unlike...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found