Skip to content

vighneshpp1986/selenium-wsl2-ubuntu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Install Selenium & Chrome in WSL Ubuntu

This script can be used to install Chrome, Chromedriver, and Selenium in Ubuntu on Windows Subsystem for Linux (WSL2).

Detailed step by step explanation is available in this article on how to Run Selenium and Chrome/Chromium on WSL2 using Python and Selenium webdriver

Using the repository

Clone the repository

git clone https://github.com/rehanhaider/selenium-wsl2-ubuntu.git selenium && cd selenium

Update system packages

sudo apt update && sudo apt upgrade -y

Install Python-venv

sudo apt install python3-venv

Create and activate virtual environment

python3 -m venv .venv && /
source .venv/bin/activate

Install selenium

pip install selenium

Install Chrome & Chromedriver

./install-selenium.sh

Run a python program (I can't believe I have to mention this)

python3 run_selenium.py

About

Install selenium in Ubuntu WSL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 60.4%
  • Python 39.6%