Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Nov 2, 2023
1 parent bbf6626 commit a8332a1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
rm "$env:EdgeWebDriver" -r -v
rm "$env:GeckoWebDriver" -r -v
- name: Remove driver directories Non-Windows
if: matrix.os != 'windows'
if: matrix.os != 'windows-latest'
run: |
sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER
- name: Start Xvfb
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/java-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
rm "$env:EdgeWebDriver" -r -v
rm "$env:GeckoWebDriver" -r -v
- name: Remove driver directories Non-Windows
if: matrix.os != 'windows'
if: matrix.os != 'windows-latest'
run: |
sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER
- name: Start Xvfb
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/js-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
rm "$env:EdgeWebDriver" -r -v
rm "$env:GeckoWebDriver" -r -v
- name: Remove driver directories Non-Windows
if: matrix.os != 'windows'
if: matrix.os != 'windows-latest'
run: |
sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER
- name: Start Xvfb
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kotlin-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
rm "$env:EdgeWebDriver" -r -v
rm "$env:GeckoWebDriver" -r -v
- name: Remove driver directories Non-Windows
if: matrix.os != 'windows'
if: matrix.os != 'windows-latest'
run: |
sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER
- name: Start Xvfb
Expand Down
7 changes: 5 additions & 2 deletions examples/ruby/spec/drivers/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
end

it 'specifies driver location' do
options = Selenium::WebDriver::Options.chrome(browser_version: 'stable')
service = Selenium::WebDriver::Service.chrome

service.executable_path = driver_path

@driver = Selenium::WebDriver.for :chrome, service: service
@driver = Selenium::WebDriver.for :chrome, service: service, options: options
end

it 'specifies driver port' do
Expand All @@ -28,7 +30,8 @@
end

def driver_finder
ENV['CHROMEDRIVER_BIN'] = Selenium::WebDriver::DriverFinder.path(Selenium::WebDriver::Options.chrome,
options = Selenium::WebDriver::Options.chrome(browser_version: 'stable')
ENV['CHROMEDRIVER_BIN'] = Selenium::WebDriver::DriverFinder.path(options,
Selenium::WebDriver::Edge::Service)
end
end

0 comments on commit a8332a1

Please sign in to comment.