From 40094b67a3749387c193ec5177832c14530fb4e7 Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Thu, 5 Dec 2019 09:16:32 +0100 Subject: [PATCH] Avoid creating a symbolic link to chromedriver in Travis. --- .travis.yml | 5 ++--- internal/suites/webdriver.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1031ec189..8e8bae3a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,9 +45,8 @@ jobs: - wget -N https://chromedriver.storage.googleapis.com/78.0.3904.70/chromedriver_linux64.zip -P ~/ - unzip ~/chromedriver_linux64.zip -d ~/ - rm ~/chromedriver_linux64.zip - - sudo mv -f ~/chromedriver /usr/local/share/ - - sudo chmod +x /usr/local/share/chromedriver - - sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver + - sudo mv -f ~/chromedriver /usr/local/bin/chromedriver + - sudo chmod +x /usr/local/bin/chromedriver - go mod download script: diff --git a/internal/suites/webdriver.go b/internal/suites/webdriver.go index fb25d5be7..1d9d323ef 100644 --- a/internal/suites/webdriver.go +++ b/internal/suites/webdriver.go @@ -21,7 +21,7 @@ type WebDriverSession struct { // StartWebDriverWithProxy create a selenium session func StartWebDriverWithProxy(proxy string, port int) (*WebDriverSession, error) { - service, err := selenium.NewChromeDriverService("/usr/bin/chromedriver", port) + service, err := selenium.NewChromeDriverService("/usr/local/bin/chromedriver", port) if err != nil { return nil, err