title: How to run Selenium ChromeDriver from python3 on wsl2?
body: <p>I'm trying to headless open Chrome from WSL2 (Ubuntu 18.04) using python 3.</p>
  <p>On Windows I'm using Chrome 84. I've downloaed Chrome Driver 84 from <a href="https://chromedriver.storage.googleapis.com/index.html?path=84.0.4147.30/" rel="noreferrer">ChromeDriver - WebDriver for Chrome</a>. And installed the .exe under C:\ChromeDriver\chromedriver.exe</p>
  <p>I've set a symbolic link from my Windows Chrome and ChromeDriver to WSL2:</p>
  <pre><code>sudo ln -s '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe' /usr/bin/google-chrome
  sudo ln -s /mnt/c/ChromeDriver/chromedriver.exe /usr/bin/chromedriver
  </code></pre>
  <p>Both Chromes are set to be executable by any user on WSL2.</p>
  <p>On WSL2, when I enter in the console:</p>
  <pre><code>google-chrome --use-gl=swiftshader
  </code></pre>
  <p>Chrome starts on windows.</p>
  <p>Here is my script:</p>
  <pre><code>from selenium import webdriver
  browser = webdriver.Chrome()    # fails
  # browser = webdriver.Chrome('/usr/bin/chromedriver') fails
  # browser = webdriver.Chrome('/mnt/c/ChromeDriver/chromedriver.exe') fails
  browser.get('https://stackoverflow.com')
  </code></pre>
  <p>It fails with error:</p>
  <blockquote>
  <p>raise WebDriverException(&quot;Can not connect to the Service %s&quot; %
  self.path) selenium.common.exceptions.WebDriverException: Message: Can
  not connect to the Service chromedriver (* OR /usr/bin/chromedriver OR /mnt/c/ChromeDriver/chromedriver.exe depending on how I start webdriver.Chrome())</p>
  </blockquote>
  <p>How to be able to start Chrome Driver from WSL2 using python3 and selenium?</p>