Open whimboo opened 1 year ago
Also note step 8.5:
Verify that each file given by the user exists. If any do not, return error with error code invalid argument.
Chromedriver will not raise such an exception because it auto-populates the list with files as found in this folder.
@sadym-chromium or @nechaev-chromium could you please have a look at this issue? When we get started to implement the file upload for BiDi we should have it spec compliant. Thanks.
CC @orkon
@sadym-chromium or @nechaev-chromium could you please have a look at this issue? When we get started to implement the file upload for BiDi we should have it spec compliant. Thanks.
CC @OrKoN
Ping @sadym-chromium or @nechaev-chromium
The Browser Testing and Tools Working Group just discussed Clarify correct behavior for uploading a folder via "Element Send Keys"
, and agreed to the following:
ACTION: Chromedriver folks to see what happens on a web page when and possible move ChromeDriver to Firefox implementation
@sadym-chromium or @nechaev-chromium I wanted to ask if you already had a chance to check the action item from the November W3C meeting? Thanks.
ping @nechaev-chromium
I'm on it
ChromeDriver just allows setting the directory path to : source code
ChromeDriver just allows setting the directory path to : source code
Thanks @nechaev-chromium. Would you also mind to give feedback to the 2nd part of the action item which was:
ACTION: Chromedriver folks to see what happens on a web page when and possible move ChromeDriver to Firefox implementation
As per current classic specification using a folder is not allowed. And I think that we also don't allow that in BiDi.
Quite some time ago we get a report for geckodriver that uploading a folder doesn't work. Hereby the relevant code didn't specify a list of files as required by the WebDriver specification for
Element Send Keys
, but just the folder name.As also mentioned chromedriver supports that method and as such adds extra behavior on top of the WebDriver specification which other drivers like at least geckodriver doesn't do.
For a consistent behavior across browsers we should most likely support a unique behavior.
CC @sadym-chromium, @foolip, @gsnedders, @jgraham