Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nanasess/setup-chromedriver

ChromeDriver for use in GitHub Actions
https://github.com/nanasess/setup-chromedriver

chromedriver codeception e2e-tests github-actions selenium-webdriver

Last synced: about 1 month ago
JSON representation

ChromeDriver for use in GitHub Actions

Awesome Lists containing this project

README

        

# setup-chromedriver

[![Test chromedriver on *NIX](https://github.com/nanasess/setup-chromedriver/actions/workflows/test.yml/badge.svg)](https://github.com/nanasess/setup-chromedriver/actions/workflows/test.yml)
[![Test chromedriver on Windows](https://github.com/nanasess/setup-chromedriver/actions/workflows/windows.yml/badge.svg)](https://github.com/nanasess/setup-chromedriver/actions/workflows/windows.yml)
[![GitHub](https://img.shields.io/github/license/nanasess/setup-chromedriver)](./LICENSE)
[![GitHub Sponsors](https://img.shields.io/github/sponsors/nanasess)](https://github.com/sponsors/nanasess)

This action sets up a [ChromeDriver](https://chromedriver.chromium.org/) for use in actions

## OS/Platform support

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

# Usage

See [action.yml](action.yml)

## for ubuntu-latest, macos-latest

``` yaml
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: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
```

## for windows-latest

``` yaml
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 &
```