nanasess / setup-chromedriver

ChromeDriver for use in GitHub Actions

Repository from Github https://github.comnanasess/setup-chromedriverRepository from Github https://github.comnanasess/setup-chromedriver

setup-chromedriver

Test chromedriver on *NIX Test chromedriver on Windows GitHub GitHub Sponsors

This action sets up a ChromeDriver for use in actions

OS/Platform support

  • ubuntu-latest, ubuntu-24.04, ubuntu-22.04 and ubuntu-20.04
  • macos-latest, macos-14 and macos-13
  • windows-latest, windows-2022 and windows-2019

Usage

See action.yml

for ubuntu-latest, macos-latest

steps:
- uses: actions/checkout@v2
- uses: nanasess/setup-chromedriver@v2
  with:
    # Optional: do not specify to match Chrome's version
    chromedriver-version: '88.0.4324.96'
    # Optional: if your chrome binary name is different
    chromeapp: chrome
- run: |
    export DISPLAY=:99
    chromedriver --url-base=/wd/hub &
    sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional

for windows-latest

steps:
- uses: actions/checkout@v2
- uses: nanasess/setup-chromedriver@v2
  with:
    # Optional: do not specify to match Chrome's version
    chromedriver-version: '88.0.4324.96'
- run: chromedriver --url-base=/wd/hub &

About

ChromeDriver for use in GitHub Actions

License:MIT License


Languages

Language:Shell 32.7%Language:JavaScript 31.0%Language:PowerShell 22.4%Language:TypeScript 13.8%