Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
aguspe committed Jun 16, 2024
1 parent 92f755e commit f7e0e4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/ruby/spec/browsers/internet_explorer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'spec_helper'

RSpec.describe 'Internet Explorer', exclusive: { platform: :windows } do
RSpec.describe 'Internet Explorer', exclusive: {platform: :windows} do
describe 'Options' do
let(:edge_location) { ENV.fetch('EDGE_BIN', nil) }
let(:url) { 'https://www.selenium.dev/selenium/web/' }
Expand Down Expand Up @@ -50,17 +50,17 @@
end

it 'adds the silent option' do
@options.add_option('silent', {silent: true})
@options.add_option('silent', true)
Selenium::WebDriver.for(:ie, options: @options)
expect(@options.instance_variable_get(:@options)['silent']).to eq({silent: true})
expect(@options.instance_variable_get(:@options)['silent']).to eq(true)
end

it 'sets the command line options' do
@options.add_argument('-k')
Selenium::WebDriver.for(:ie, options: @options)
end

it 'launches ie with the create process api' do
it 'launches ie with the create process api', skip: 'When using with IE 8 or higher, it needs a registry value' do
@options.force_create_process_api = true
Selenium::WebDriver.for(:ie, options: @options)
expect(@options.instance_variable_get(:@options)['force_create_process_api'])
Expand Down

0 comments on commit f7e0e4b

Please sign in to comment.