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.

Sendkeys is sending the incomplete string

See original GitHub issue

Hello folks,

I’m having trouble sending sendkeys in my application. Sendkeys itself works, but sometimes it does not send the full string to the field of my application. I tried to solve this in two different ways (as you can see the examples below), but even then this error occurs sometimes.

My application is running in Codeship (CI) and also runs locally, in both environments the error occurs


  • Node Version: Node Version read from package.json: 6.2.2; Node Version used: 6.2.2
  • Protractor Version: 5.1.1
  • Angular Version: I'm not using angular for that
  • Browser(s): ChromeDriver; Driver info: chromedriver=2.29.461571
  • Operating System and Version platform=Linux 4.2.0-42-generic x86_64
  • Your protractor configuration file: See here
  • A relevant example test: I've added two examples just below
  • Output from running the test image
  • Steps to reproduce the bug: I have already tried using two ways to solve this, but with both ways the same error occurs
        this.name.click();
        this.name.sendKeys(text);
        var nameValue = 'odit';
        nameValue.split('').forEach((c) => this.name.sendKeys(c));
  • The URL you are running your tests against (if relevant): Private project, I can not send the url

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
victornoelcommented, Sep 8, 2017

@wswebcreation

  1. it does not happen with those tests
  2. it only happens on one specific place in my application, but not on any other
  3. it happens sometimes, usually it is dependent on performances

I’m using chormium 61, chromedriver 2.32, protractor 5.1.2

I can try to replicate it on a smaller example, but I suspect it won’t happen because it is tied to the fact my application is complex. I will try to replicate it deterministically on my application and provide you with instructions to witness it maybe first 😃

0reactions
victornoelcommented, Sep 8, 2017

@wswebcreation ah yes, me too there is some validation (from angular reactive forms) on this input I’m testing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selenium - send_keys() sending incomplete string
It looks like this is a common issue. Before trying the workarounds, as a sanity check, make sure that the input field is...
Read more >
Selenium - sendKeys() not inserting value into textbox
If sendkeys() methods are not working then use following two ways to ... First once clear the input text fields and send the...
Read more >
1771 - sendKeys() sometimes doesn't enter all the characters ...
Hi, Since upgrading to chrome driver 2.35 sendKeys() method is sending jumbled text to the text box which affecting our automation suite.
Read more >
Problem with SendKeys.SendWait function - MSDN - Microsoft
When I send the sendkeys.sendwait function to an open dialog box for any software, the sendkey.sendwait(string a) pastes an incomplete string.
Read more >
Resolving the 'Incomplete Keyboard Input' Problem
The syntax of the string of keystrokes is invalid. The string accepted by the Keys method can contain special key constants like [Del]...
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