Skip to content

Commit

Permalink
fix(py): correct chromedriver path
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Apr 14, 2024
1 parent a97ee0b commit 9948d52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ jobs:
test:
strategy:
matrix:
os: [macos-12, ubuntu-22.04, windows-2022]
os:
- macos-12
- ubuntu-22.04
- windows-2022
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -38,7 +41,7 @@ jobs:
- name: Run Node tests
run: npm t
- name: Install pipenv
run: pip install pipenv
run: python3 -m pip install pipenv
- name: Install Pip dependencies
run: python3 -m pipenv install
- name: Run Python tests
Expand Down
4 changes: 2 additions & 2 deletions py/selenium/builder/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ def setUp(self):

# We are using the nw node module to download NW.js
# Change the path as necessary
chromedriver_path = "./node_modules/nw/nwjs/chromedriver"
chromedriver_path = "./node_modules/nw/nwjs/nw/chromedriver" + (".exe" if sys.platform == "win" else "")

if sys.platform == "win":
chromedriver_path += ".exe"

options = webdriver.ChromeOptions()
# File path to NW.js project
options.add_argument("nwapp=" + pwd)
options.add_argument("nwapp=" + "./py/selenium/builder")
# Useful if running in CI
options.add_argument("headless=new")

Expand Down

0 comments on commit 9948d52

Please sign in to comment.