webdriver
webdriver copied to clipboard
Allow uploading folders
Local automation run with Selenium can upload the directory using sendKeys, but via RemoteWebDriver it's not allowed, because LocalFileDetector doesn't allow the folder to be uploaded.
As an example, locally you can drag and drop (upload) a folder to storage (like Google Drive) and it will create such a folder with related content, but in remote it`s not possible, because folders are not allowed for uploading with LocalFileDetector
According to the issue https://github.com/SeleniumHQ/selenium/issues/12311, the way to change this behavior is to request changes to WebDriver W3C Specification. Could you please consider such changes?
See also issue #1742. Chrome is behaving incorrectly at the moment and allows uploading of a folder with Element Send Keys. It needs to be discussed if that is really wanted.