Running Selenium on Windows 10 From Ubuntu WSL
If you’re trying to run Selenium with Chrome headless on Ubuntu WSL and encountering issues, an alternative approach is to install the Selenium Standalone Server on your Windows 10 machine and then connect to it remotely from the Ubuntu WSL terminal. This can help you overcome the limitations of running Chrome headless directly within WSL.
Here’s a step-by-step guide on how to achieve this:
Step 1: Set Up Selenium Standalone Server on Windows 10
-
Install Java: Ensure you have Java installed on your Windows 10 machine since Selenium requires it to run. You can download and install Java from the official website.