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
質問済み 2年前1428ビュー
1回答
-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
サポートエンジニア
Isha_K
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ