Chrome driver and downloading.

53 views
Skip to first unread message

Daan Nusman

unread,
Oct 21, 2025, 11:21:40 PMOct 21
to Selenium Users
Hello,

What is the current status of downloading files with the chrome driver with the JS bindings? There is a LOT of information and bindings out there, much of it seemingly outdated.

So, for this setup:
* Selenium 4.37.0
* Chrome  141.0.7390.78 Linux64
* CromeDriver  141.0.7390.78 Linux64
* JavaScript bindings
* Fedora Linux 42, kernel 6.16.7-200.fc42.x86_64

Do I need to do something to enable Chrome downloads? For example...
* Bidi
* Chrome Developer Tools
* Setting an option
I can't find anything that works or has a current API online.

Or am I better off trying to get Firefox working instead of Chrome (hangs on driver create)?

Thank you,
Daan


Corey Goldberg

unread,
Oct 22, 2025, 12:50:29 AMOct 22
to seleniu...@googlegroups.com
If you are running headless, downloading is disabled in Chrome by default. The easiest way to enable it is using the CDP command: `Page.setDownloadBehavior`.

If you are not using headless, it should just work without doing anything special. 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/selenium-users/98912c9c-409b-4959-a738-f56ef5157246n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages