Skip to content

Commit

Permalink
[rb] Adds support for the w3c silent option for the ruby library (#14152
Browse files Browse the repository at this point in the history
)

Adds support for the w3c silent option for the ruby library

Co-authored-by: aguspe <[email protected]>
  • Loading branch information
aguspe and aguspe authored Jun 18, 2024
1 parent d973939 commit 0f7386e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rb/lib/selenium/webdriver/ie/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class Options < WebDriver::Options
use_legacy_file_upload_dialog_handling: 'ie.useLegacyFileUploadDialogHandling',
attach_to_edge_chrome: 'ie.edgechromium',
edge_executable_path: 'ie.edgepath',
ignore_process_match: 'ie.ignoreprocessmatch'
ignore_process_match: 'ie.ignoreprocessmatch',
silent: 'silent'
}.freeze
BROWSER = 'internet explorer'

Expand Down
6 changes: 5 additions & 1 deletion rb/spec/unit/selenium/webdriver/ie/options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module IE
use_legacy_file_upload_dialog_handling: true,
attach_to_edge_chrome: true,
edge_executable_path: '/path/to/edge',
silent: true,
'custom:options': {foo: 'bar'})

expect(opts.args.to_a).to eq(%w[foo bar])
Expand Down Expand Up @@ -87,6 +88,7 @@ module IE
expect(opts.timeouts).to eq(script: 40000, page_load: 400000, implicit: 1)
expect(opts.set_window_rect).to be(false)
expect(opts.options[:'custom:options']).to eq(foo: 'bar')
expect(opts.silent).to be_truthy
end

it 'has native events on by default' do
Expand Down Expand Up @@ -131,6 +133,7 @@ module IE
platform_name: 'win10',
accept_insecure_certs: false,
page_load_strategy: 'eager',
silent: true,
unhandled_prompt_behavior: 'accept',
strict_file_interactability: true,
timeouts: {script: 40000,
Expand Down Expand Up @@ -187,7 +190,8 @@ module IE
'ie.usePerProcessProxy' => true,
'ie.useLegacyFileUploadDialogHandling' => true,
'ie.edgechromium' => true,
'ie.edgepath' => '/path/to/edge'})
'ie.edgepath' => '/path/to/edge',
'silent' => true})
end
end
end # Options
Expand Down

0 comments on commit 0f7386e

Please sign in to comment.