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() throws ENAMETOOLONG with long strings in FF v46 on OSX

See original GitHub issue

Meta

OS: OSX 10.11.5

Selenium Version: 2.53.2

Browser: Firefox

Browser Version: v46.0.1 (64-bit)

Expected Behavior

The string is input into a textarea in FF v46 on OSX without any issues.

Actual Behavior

sendKeys throws ENAMETOOLONG if the string is input all at once. It seems as if the textarea in the OSX FF webdriver is being treated like an input of type=file.

If individual characters are insert instead when a slash is encountered the following error is thrown:

1) test file consistency: uploaded and encrypted files should match downloaded and decrypted files
  Message:
    Failed: Uploading directories is not supported: /
  Stack:
    TypeError: Uploading directories is not supported: /

Steps to reproduce

Using node js generate a large string (>2000 chars) s and call .sendKeys(s) on a textarea

This testcase triggers the failure only on my local machine. Our testing infrastructure runs against around 10 different browsers and Firefox on OSX seems to be the only one with the problem.

Sample testcase

Issue originally reported here angular/protractor#3245

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
mkallangocommented, Oct 20, 2017

It is happen with Chrome too… doesn’t have any workaround??

0reactions
diemolcommented, Apr 26, 2019

Closing this issue as no test case was provided by the OP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sendKeys() throws ENAMETOOLONG with long strings in FF ...
The string is input into a textarea in FF v46 on OSX without any issues. Actual Behavior. sendKeys throws ENAMETOOLONG if the string...
Read more >
3.1.1 - sendkeys failing with error message ENAMETOOLONG ...
Error Message: Message: Failed: ENAMETOOLONG: name too long, stat 'incidunt magni ... sendKeys() at Array.map (native) at process.
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