-
Notifications
You must be signed in to change notification settings - Fork 774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prop:bug ? browser.SetDownloadBehavior vs. old page.SetDownloadBehavior #627
Comments
Your cdproto dependency is too new for your Chrome version. Use an older cdproto and the Recent versions of the protocol definition have moved this API, but I think the change on the Chrome browser itself won't come until a future release like v82 or v83. |
Ok I rollback |
I'll look into temporarily re-adding the deprecated API to cdproto, since Chrome left a void for a few releases where the old API is deprecated, but the new API isn't available yet. Until that happens, you should be able to use a slightly older version of cdproto. |
Also update chromedp to 0.5.4, so we can benefit from conveniences such as RunResponse (which is relied upon for this fix). Consequently, that means a recent enough Chrome version (v83) is needed as per this commit. See chromedp/chromedp#627 Fixes perkeep#17
Also update chromedp to 0.5.4, so we can benefit from conveniences such as RunResponse (which is relied upon for this fix). Consequently, that means a recent enough Chrome version (v83) is needed as per this commit. See chromedp/chromedp#627 Fixes perkeep#17
The cdproto commit is chromedp/cdproto@d1f6fc5, if any of you want to pull it. The simplest way will be |
Also update chromedp to 0.5.4, so we can benefit from conveniences such as RunResponse (which is relied upon for this fix). Consequently, that means a recent enough Chrome version (v83) is needed as per this commit. See chromedp/chromedp#627 Fixes perkeep#17
Also update chromedp to 0.5.4, so we can benefit from conveniences such as RunResponse (which is relied upon for this fix). Consequently, that means a recent enough Chrome version (v83) is needed as per this commit. See chromedp/chromedp#627 Fixes #17
What versions are you running?
What did you do? Include clear steps.
I change old:
page.SetDownloadBehavior(page.SetDownloadBehaviorBehaviorAllow).WithDownloadPath(FileDir + "/download")
on:
browser.SetDownloadBehavior(browser.SetDownloadBehaviorBehaviorAllow).WithDownloadPath(FileDir + "/download")
What did you expect to see?
download file
What did you see instead?
'Browser.setDownloadBehavior' wasn't found (-32601)
but code compiled successfully.
error during program execution
What is wrong ?
The text was updated successfully, but these errors were encountered: