4

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

0

2 Answers 2

11

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

Links:

Choose any one of the following links:

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
    
2
  • where do i find the path to installation?
    – Alvaro
    Nov 18, 2019 at 16:02
  • @Alvaro which google-chrome shows /usr/bin/google-chrome but it is a symbolic link.
    – Biswapriyo
    Nov 18, 2019 at 18:13
2

For those who have not yet found the solution (WSL2). Follow this tutorial: chromedriver in WSL2. Many are similar, but what did the trick for me was to place the chromedriver in the corresponding group and user:

sudo chown root:root /usr/bin/chromedriver
1
  • Welcome to Super User! Please don't try to answer old questions and please expand your answer. Jan 10, 2021 at 6:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .