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
feita há 2 anos1428 visualizações
1 Resposta
-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
ENGENHEIRO DE SUPORTE
Isha_K
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas