Skip to content

.sendKeys() throws ENAMETOOLONG with long strings in FF v46 on OSX #2164

@NSkelsey

Description

@NSkelsey

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-nodejsJavaScript BindingsJ-awaiting answerQuestion asked of user; a reply moves it to triage again

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions