Passer au contenu principal

downloadFile

Download a file from the remote computer running Selenium node to local file system by using the downloadFile command.

information

Note that this command is only supported if you use a Selenium Grid with Chrome, Edge or Firefox and have the se:downloadsEnabled flag set in the capabilities.

Usage
browser.downloadFile(fileName, targetDirectory)
Parameters
NameTypeDetails
fileNamestringremote path to file
targetDirectorystringtarget location on local computer

Welcome! How can I help?

WebdriverIO AI Copilot