Closed VitaliiDolotov closed 3 years ago
Hey @VitaliiDolotov, please report this issue to the Selenoid project.
For future refer https://github.com/aerokube/selenoid/issues/1079
@diemol In the refered selenoid issue was saying that there usage of API /se/file which doesn't exist in W3C standard. As I know Selenium 4 is now fully w3c, so maybe at your side need to create some wrapper which will be fully compatible with w3c and workable with file upload for remote driver?
@StanislavKharchenko The Selenoid issue is not entirely accurate. The /session/{sessionId}/se/file
end point is fully compliant with the W3C spec. The spec allows “extension commands” when used with a so-called “vendor prefix.” The Selenium project has chosen “se” as its vendor prefix and is free to introduce whatever custom end points or commands it cares to under thar name space. There may be a bug in Selenium’s server component, but I believe that is indeed what #8524 was referring to. If Selenoid’s intermediary node implementation chooses not to implement the Selenium extension command, that’s their choice, and they’re welcome to make that. They would also be correct in claiming their implementation to be “spec compatible,” but that functionality would then not work with Selenium.
🐛 Bug Report
File upload is not working using RemoteWebDriver. It is working fine running locally but fails on Remote.
Last working version 4.0.0-alpha05 Stop working since 4.0.0-alpha07 Still not working in 4.0.0-beta2
To Reproduce
driver.FindElement(By.Id("upload")).SendKeys(file);
Expected behavior
File uploaded successfully
Test script or set of commands reproducing this issue
Environment
OS: Windows 10 Browser: Chrome Browser version: 89.0.4389.114 Browser Driver version: Selenium.WebDriver.ChromeDriver -Version 89.0.4389.2300 Language Bindings version: C# Selenium Grid version (if applicable): selenoid 1.10.3
Notes
There is a separate bug (https://github.com/SeleniumHQ/selenium/issues/8524) that may be related but there are no steps how to deal with the above behavior.