-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Description
Feature and motivation
#11443 is a proposal to implement file download on the client bindings. However, to download a file you need to know the file name, and this might be tricky given that most of the time the application under test does not let you choose the name that will be used when the file is downloaded.
We should have an endpoint that lists the downloaded files in the configured download directory in Grid. Then the user can choose the name of the one they want to download.
Usage example
Something along the lines of:
/session/:sessionId:/se/file
Which could return:
[
{
"name":"input.txt",
"timestamp": "<timestamp with creation date"
},
{
"name":"anotherFile.txt",
"timestamp": "<timestamp with creation date"
}
]But I am not 100% that is the W3C WebDriver response payload structure, we should adapt to that one. @titusfortner do you know?
The main challenge in this issue is to decide if we need to list files that belong to a session or if it is OK to list all downloaded files.