Skip to content

Commit

Permalink
update step to install chromedriver
Browse files Browse the repository at this point in the history
  • Loading branch information
denisecodes committed May 11, 2024
1 parent f2f2ee4 commit 20465fb
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,14 @@ jobs:
sudo apt install -y ./google-chrome-stable_current_amd64.deb
- name: Install ChromeDriver
run: |
CHROME_VERSION=$(google-chrome --version | grep -oP '\d+' | head -1)
echo "Detected Chrome version: $CHROME_VERSION"
CHROMEDRIVER_VERSION=$(wget -qO- "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION")
echo "Detected ChromeDriver version: $CHROMEDRIVER_VERSION"
wget -q https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip
unzip -o chromedriver_linux64.zip
sudo mv chromedriver /usr/bin/chromedriver
sudo chown root:root /usr/bin/chromedriver
sudo chmod +x /usr/bin/chromedriver
uses: nanasess/setup-chromedriver@v2
with:
# Optional: do not specify to match Chrome's version
chromedriver-version: '88.0.4324.96'
- run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- name: Installed package list
run: apt list --installed
Expand Down

0 comments on commit 20465fb

Please sign in to comment.