Browser.cancelDownloadCancel a download if in progress
| Name | Type | Description |
|---|---|---|
guid | string | Global unique identifier of the download. |
browserContextId (optional) | BrowserContextID | BrowserContext to perform the action in. When omitted, default browser context is used. |
{
"id": 1,
"method": "Browser.cancelDownload",
"params": {
"guid": "guid-value"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Browser.cancelDownload', {"guid": "guid-value"});
console.log(result);