{"action":"created","issue":{"url":"https://api.github.com/repos/cyrus-and/chrome-remote-interface/issues/290","repository_url":"https://api.github.com/repos/cyrus-and/chrome-remote-interface","labels_url":"https://api.github.com/repos/cyrus-and/chrome-remote-interface/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/cyrus-and/chrome-remote-interface/issues/290/comments","events_url":"https://api.github.com/repos/cyrus-and/chrome-remote-interface/issues/290/events","html_url":"https://github.com/cyrus-and/chrome-remote-interface/issues/290","id":267762143,"number":290,"title":"TypeError: Page.setDownloadBehavior is not a function","user":{"login":"HenleyKuang","id":16038851,"avatar_url":"https://avatars0.githubusercontent.com/u/16038851?v=4","gravatar_id":"","url":"https://api.github.com/users/HenleyKuang","html_url":"https://github.com/HenleyKuang","followers_url":"https://api.github.com/users/HenleyKuang/followers","following_url":"https://api.github.com/users/HenleyKuang/following{/other_user}","gists_url":"https://api.github.com/users/HenleyKuang/gists{/gist_id}","starred_url":"https://api.github.com/users/HenleyKuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenleyKuang/subscriptions","organizations_url":"https://api.github.com/users/HenleyKuang/orgs","repos_url":"https://api.github.com/users/HenleyKuang/repos","events_url":"https://api.github.com/users/HenleyKuang/events{/privacy}","received_events_url":"https://api.github.com/users/HenleyKuang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-23T18:02:35Z","updated_at":"2017-10-23T18:36:19Z","closed_at":null,"author_association":"NONE","body":"I get the error `TypeError: Page.setDownloadBehavior is not a function` when I try to call the setDownloadBehavior API. `await Page.setDownloadBehavior({behavior: 'allow', downloadPath: downloadDirectory})` is my code.\r\n\r\nWhen I print out Page, the output doesn't seem to have the setDownloadBehavior function: [console.log(Page)](https://pastebin.com/SHZTg1G4)\r\n\r\nHowever, I can see the setDownloadBehavior function in the protocols json for my chrome version when I manually navigate to host:port/json/protocol. It's also listed in `lib\\protocol.json`.\r\n\r\n| Component | Version\r\n|-|-\r\n| Operating system\t  \t \t| Windows 10\r\n| Node.js\t\t\t\t\t| v8.6.0\r\n| Chrome/Chromium/...\t\t| Chrome stable release 62.0.3202.62 (Official Build) (64-bit)\r\n| chrome-remote-interface\t| 0.25.2\r\n\r\nIs Chrome running in a container? NO\r\n"},"comment":{"url":"https://api.github.com/repos/cyrus-and/chrome-remote-interface/issues/comments/338755570","html_url":"https://github.com/cyrus-and/chrome-remote-interface/issues/290#issuecomment-338755570","issue_url":"https://api.github.com/repos/cyrus-and/chrome-remote-interface/issues/290","id":338755570,"user":{"login":"cyrus-and","id":1660263,"avatar_url":"https://avatars2.githubusercontent.com/u/1660263?v=4","gravatar_id":"","url":"https://api.github.com/users/cyrus-and","html_url":"https://github.com/cyrus-and","followers_url":"https://api.github.com/users/cyrus-and/followers","following_url":"https://api.github.com/users/cyrus-and/following{/other_user}","gists_url":"https://api.github.com/users/cyrus-and/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrus-and/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrus-and/subscriptions","organizations_url":"https://api.github.com/users/cyrus-and/orgs","repos_url":"https://api.github.com/users/cyrus-and/repos","events_url":"https://api.github.com/users/cyrus-and/events{/privacy}","received_events_url":"https://api.github.com/users/cyrus-and/received_events","type":"User","site_admin":false},"created_at":"2017-10-23T18:36:19Z","updated_at":"2017-10-23T18:36:19Z","author_association":"OWNER","body":"Are you able to come up with a minimal program that reproduces this issue?"}}
{"actor":{"display_login":"cyrus-and"}}