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
preguntada hace 2 años1428 visualizaciones
1 Respuesta
-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
INGENIERO DE SOPORTE
Isha_K
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas