메인 컨텐츠로 건너뛰기

downloadFile

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

정보

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

await browser.downloadFile(fileName, targetDirectory)

Parameters

NameTypeDetails
fileNamestringremote path to file
targetDirectorystringtarget location on local computer

Welcome! How can I help?

WebdriverIO AI Copilot