Selenium Standalone
file
Upload a file to remote machine on which the browser is running.
Selenium Standalone command. More details can be found in the official protocol docs.
Usage
browser.file(file)
Parameters
Name | Type | Details |
---|---|---|
file | string | Base64-encoded zip archive containing single file which to upload. In case base64-encoded data does not represent a zip archive or archive contains more than one file it will throw an unknown error. |
Returns
- <String>
path
: Absolute path of uploaded file on remote machine.
getDownloadableFiles
List files from remote machine available for download.
Selenium Standalone command. More details can be found in the official protocol docs.
Usage
browser.getDownloadableFiles()
Returns
- <Object>
names
: Object containing a list of downloadable files on remote machine.
download
Download a file from remote machine on which the browser is running.
Selenium Standalone command. More details can be found in the official protocol docs.
Usage
browser.download(name)
Parameters
Name | Type | Details |
---|---|---|
name | string | Name of the file to be downloaded |
Returns
- <Object>
data
: Object containing downloaded file name and its content
deleteDownloadableFiles
Remove all downloadable files from remote machine on which the browser is running.
Selenium Standalone command. More details can be found in the official protocol docs.
Usage
browser.deleteDownloadableFiles()