download file using webdriver firefox and python selenium
Selenium is one of my favourite tool for automation.
In this post, I will demonstrate some basic code to download a file from a website in a headless mode , and also provide a docker file to make things simpler.
Python Code Here is some basic code which will make an attempt to download a **7zip exe. **
from pyvirtualdisplay import Display from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.