(01)Install Selenium
Linux
1pip install selenium webdriver-manager2# ChromeDriver via package manager:3sudo apt-get install chromium-chromedriverBrowser automation for web testing across Chrome, Firefox, and Edge
What is this?
Selenium automates web browsers for end-to-end testing of websites and web apps.
Step 01
1pip install selenium webdriver-manager2# ChromeDriver via package manager:3sudo apt-get install chromium-chromedriverStep 02
1python3 << 'PY'2from selenium import webdriver3from selenium.webdriver.chrome.service import Service4from webdriver_manager.chrome import ChromeDriverManager5driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))6driver.get("https://example.com")7print(driver.title)8driver.quit()9PYStep 03
1python3 -c "import selenium; print(selenium.__version__)"Step 04
1pip install --upgrade selenium webdriver-manager2chromedriver --version3google-chrome --version