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 a single space using .type(" ")

See original GitHub issue

Current behavior:

cy.get([some_object]).type(" ") results in the following in the console: CypressError: cy.type() cannot accept an empty String. You need to actually type something.

Desired behavior:

cy.get([some_object]).type(" ") causes a single space to be typed in [some_object]

How to reproduce:

cy.get([some_object]).type(" ")

Test code:

cy.get([some_object]).type(" ")

Additional Info (images, stack traces, etc)

  • Operating System: Windows 10
  • Cypress Version: Beta Version 1.0.2
  • Browser Version: Chrome 61

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
brian-manncommented, Oct 25, 2017

Yah, if there wasn’t an issue opened it will not ever get looked at. Thank you for opening this.

0reactions
Ravinderkaur04commented, Apr 19, 2019

Hello, I have a similar issue with forward slashes and semi-colons. I’m trying to fill in date and time and my input looks like this for ex: 2019/4/18 10:11. My code looks something like

dateTime = year+"/"+month+"/"+date+" "+hours+":"+minutes
cy.get(input).type(dateTime)

Can someone look into this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot type a space at the end of last line | WordPress.org
Workaround: paste or type a word, move the cursor to the start of the word, type a space – delete any nonsense text...
Read more >
Single line spacing setting is not working - Microsoft Community
The answer I found for my single line spacing question was "click Design/Paragraph Spacing/ and choose "No paragraph space".
Read more >
Space bar not working in form fields - Stack Overflow
The contact form is acting very strange. I cannot enter space in any of the contact fields. I'm using the following jQuery plugins:...
Read more >
"Why won't Word single-space my text?" - YouTube
It's one of the most frequent distress calls I get from Word users - that stubborn extra space between paragraphs even when the...
Read more >
How do you change to single-spacing when typing something?
Solved: When I type in a module, it double-spaces. ... your user's choice of browsers (or smartphones!) while using Canvas--there are often ...
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