Page.setDownloadBehavior

Set the behavior when downloading a file.

{
  "name": "setDownloadBehavior",
  "description": "Set the behavior when downloading a file.",
  "experimental": true,
  "parameters": [
    {
      "name": "behavior",
      "type": "string",
      "enum": [
        "deny",
        "allow",
        "default"
      ],
      "description": "Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny)."
    },
    {
      "name": "downloadPath",
      "type": "string",
      "optional": true,
      "description": "The default path to save downloaded files to. This is requred if behavior is set to 'allow'"
    }
  ]
}