Skip to content

Commit

Permalink
Fix custom chrome path
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoorlakshya committed Jul 8, 2024
1 parent 0bf09ca commit 936a702
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
with:
chrome-version: 114
install-dependencies: true
- run: set WD_CHROME_PATH=${{ steps.setup-chrome.outputs.chrome-path }}
- run: $env:WD_CHROME_PATH = '${{ steps.setup-chrome.outputs.chrome-path }}'
- name: Run tests
run: bundle exec rake spec

Expand Down
6 changes: 5 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@

if OS.windows?
# Set by 'browser-actions/setup-chrome' step in CI
Selenium::WebDriver::Chrome.path = ENV.fetch('WD_CHROME_PATH', nil)
chrome_path = ENV.fetch('WD_CHROME_PATH', nil)
raise 'Custom chrome path was nil.' if chrome_path.nil?

puts "Custom chrome path: #{chrome_path}"
Selenium::WebDriver::Chrome.path = chrome_path
end

#
Expand Down

0 comments on commit 936a702

Please sign in to comment.