Skip to content
Advertisement

Download files without dialog window selenium

I have a cod.

JavaScript

I have a docker + python + pytest + selenium + Chrome + selenium host and prefs But it doesn’t work. I want save to file without dialog window. But test don`t save files. How can I understand the reason? And… Downloading files works on Windows, but not docker on linux. P.S I have this path in docker env for chrome download and python DOWNLOAD_FOLDER=/app/download_files FOLDER_FOR_TEST_FILES=/app/test_files

My cod for check files

JavaScript

Dockerfile

JavaScript

Advertisement

Answer

After 5 days. In the end, all you had to do was use docker-volumes. In docker-compose.yml

JavaScript
Advertisement