Page.setDownloadBehaviorSet the behavior when downloading a file.
| Name | Type | Description |
|---|---|---|
behavior | string | Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny). |
downloadPath (optional) | string | The default path to save downloaded files to. This is required if behavior is set to 'allow' |
{
"id": 1,
"method": "Page.setDownloadBehavior",
"params": {
"behavior": "behavior-value"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Page.setDownloadBehavior', {"behavior": "behavior-value"});
console.log(result);