Selenium - Send keys not working to '//input[contains(@type, 'file')]' with LocalFileDetector

0

I'm trying to sendKeys to a file handler in chrome and am getting:

org.openqa.selenium.UnsupportedCommandException: unknown command: unknown command: session/1b651f6fc5776ba353569d3b7e423552/se/file

I am using the LocalFileDetector:

        driver.fileDetector = LocalFileDetector()

This works locally as well as on other testing platforms. Is this not supported in Browser Testing(Device Farm)?

Command: [1b651f6fc5776ba353569d3b7e423552, uploadFile {file=UEsDBBQACAgIAFqqTlQAAAAAAAAA .......

Brandon
asked 2 years ago1408 views
1 Answer
-1

Hello,

I understand that you are getting an error when trying to SendKeys to file handler, using Selenium, in Device Farm Chrome Browser.

The se/file endpoint is not part of the W3C specification, so it will not work by default. It is likely that older versions of Selenium server handles this implementation detail on it's own, but we do not use Selenium server at all.

We recommend updating to W3C enabled client and see if it resolves the issue.

Here's a relevant stack post: https://stackoverflow.com/questions/58296774/ruby-selenium-webdriver-3-142-6-unable-to-upload-file-due-to-seleniumwebdriv

AWS
SUPPORT ENGINEER
Isha_K
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions