-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Question] Why is 'setDownloadBehavior' required for connect_over_cdp? Any workaround? #30383
Comments
Filed upstream bug: chromiumembedded/cef#3684 |
Closing in favor of chromiumembedded/cef#3684, since there is no action item on Playwright side. |
@LFMM-33 would that work for you? chromiumembedded/cef#3684 (comment) Since the CEF Alloy mode is deprecated and gets removed soon the solution above seems to work as of today. |
Good morning, @mxschmitt My apologies for the late response, the project got delayed due to other priorities. It still keeps not working for me... I've added this line I keep receiving the same error message:
I leave my code here in case you spot anything weird:
I also do not know what "CEF Alloy mode" is to me honest, netiher how I could give you more info on my situation. Might be my Chromium version? Maybe it's too "old" for these features though the flags are been accepted by the broswer (no error was raised) but it's definetly not working :( |
@LFMM-33 CEF can be launched in two modes. Alloy which is deprecated and gets removed from CEF soon and native Chrome mode. The native Chrome mode. Depending on your implementation, it might be And yes, it requires a recent CEF I think. |
@mxschmitt Thank you for the clarification. I'll look into it with a C++ dev. Any indication / any check that could confirm if "Chrome runtime" is indeed enabled? |
I'm unfortunately not very familiar with CEF, this might be helpful: chromiumembedded/cef#3685 |
Hello to all,
Sorry to bother here with a question. I added the same question in Discord but after a week, noone has answered so I'm trying luck here. Sorry for the spam.
I'm working on developing tests E2E for a web desktop application that uses Qt as its base for UI. The Qt version we are deploying uses Chromium v108.0.5359.71 as browser and we've successfully developed tests using ChromeDriver+Selenium but we are interested on transitioning to Playwright.
The issue we are having, also stated in the following comment in Github (#10927 (comment)) is that for some reason we aren't able to connect over CDP because the 'Browser.setDownloadBehavior' request is failing (file node_modules/playwright-core/lib/server/chromium/crBrowser.js -> _initialize function)
I enter this condition because our browser seems to have this._options.acceptDownloads = 'accept'. Before, if you see the comment linked above, the only restrictions were electron and clank.
If I comment this CDP request, Playwright is able to connect and my tests work as expected.
So, my question would be why is this a requirement and if anyone knows any workaround / a way to set Chromium browser's "acceptDownloads" option to the expected value "internal-browser-default" so I can overpass this?
Thank you for reading
The text was updated successfully, but these errors were encountered: