Search code examples
seleniumprotractorsaucelabsbrowserstack

Protractor: SendKeys fails when FileDetector is enabled (Error: Uploading directories is not supported"


I am currently running my Protractor tests on SauceLabs and BrowserStack and have FileDetector configured so that I can run tests that involve uploading files.

I am getting an error that says 'Uploading directories is not supported" when I try to use sendKeys() to write a message in a textarea. I do not get this error when FileDetector is not included in the page. To clarify, I am not doing any uploading at all when this error occurs - just trying to add text to a textarea.

Also, sendKeys does work in certain instances but not in others.

Thanks for your help!


Solution

  • Turns out that it was a bug! Issue was fixed in: https://github.com/SeleniumHQ/selenium/issues/1814