Running Selenium on WSL using Chrome

1

I want to use Capybara to run some automated tests with Chrome, how do I choose to run the google-chrome-dev instead of the default Chrome? Only Chrome 78 (unstable) will run, however, Selenium (for Capybara) requires webdriver. Webdriver only support version 77.

I was able to get Chrome running by following these instructions: https://github.com/Microsoft/WSL/issues/648#issuecomment-324562271

WSL Capybara and the WSL Chrome Window:

image

Casey

Posted 2019-08-26T23:10:32.070

Reputation: 11

Answers

3

How do I choose to run the google-chrome-dev instead of the default Chrome?

Links:

Choose any one of the following link:

The version and release timeline can be viewed here Chrome Status Schedule.

Steps:

  • Add apt installation key (source):
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
  • Download the package:
wget https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb
  • Try to install the package:
sudo dpkg -i google-chrome-beta_current_amd64.deb
  • Install the dependencies:
sudo apt -f install
  • Now install the actual package:
sudo dpkg -i google-chrome-beta_current_amd64.deb

Biswapriyo

Posted 2019-08-26T23:10:32.070

Reputation: 6 640

where do i find the path to installation? – Alvaro – 2019-11-18T16:02:29.530

@Alvaro which google-chrome shows /usr/bin/google-chrome but it is a symbolic link. – Biswapriyo – 2019-11-18T18:13:13.233