Skip to content

Commit 6ce9ec1

Browse files
committed
[rb] Update chrome options from edge_spec
1 parent 7f07157 commit 6ce9ec1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/ruby/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cd seleniumhq.github.io/examples/ruby
2020
bundler install
2121
```
2222

23-
4. Run all all tests
23+
4. Run all tests
2424

2525
```
2626
bundle exec rspec

examples/ruby/spec/browsers/edge_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929

3030
it 'add extensions' do
3131
extension_file_path = File.expand_path('../spec_support/extensions/webextensions-selenium-example.crx', __dir__)
32-
options = Selenium::WebDriver::Options.chrome
32+
options = Selenium::WebDriver::Options.edge
3333

3434
options.add_extension(extension_file_path)
3535

36-
@driver = Selenium::WebDriver.for :chrome, options: options
36+
@driver = Selenium::WebDriver.for :edge, options: options
3737
@driver.get('https://www.selenium.dev/selenium/web/blank.html')
3838
injected = @driver.find_element(:id, 'webextensions-selenium-example')
3939
expect(injected.text).to eq 'Content injected by webextensions-selenium-example'

0 commit comments

Comments
 (0)