Skip to content

Commit 0f7386e

Browse files
authored
[rb] Adds support for the w3c silent option for the ruby library (#14152)
Adds support for the w3c silent option for the ruby library Co-authored-by: aguspe <agustin.pe94@gmail.com>
1 parent d973939 commit 0f7386e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

rb/lib/selenium/webdriver/ie/options.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ class Options < WebDriver::Options
4242
use_legacy_file_upload_dialog_handling: 'ie.useLegacyFileUploadDialogHandling',
4343
attach_to_edge_chrome: 'ie.edgechromium',
4444
edge_executable_path: 'ie.edgepath',
45-
ignore_process_match: 'ie.ignoreprocessmatch'
45+
ignore_process_match: 'ie.ignoreprocessmatch',
46+
silent: 'silent'
4647
}.freeze
4748
BROWSER = 'internet explorer'
4849

rb/spec/unit/selenium/webdriver/ie/options_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ module IE
5757
use_legacy_file_upload_dialog_handling: true,
5858
attach_to_edge_chrome: true,
5959
edge_executable_path: '/path/to/edge',
60+
silent: true,
6061
'custom:options': {foo: 'bar'})
6162

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

9294
it 'has native events on by default' do
@@ -131,6 +133,7 @@ module IE
131133
platform_name: 'win10',
132134
accept_insecure_certs: false,
133135
page_load_strategy: 'eager',
136+
silent: true,
134137
unhandled_prompt_behavior: 'accept',
135138
strict_file_interactability: true,
136139
timeouts: {script: 40000,
@@ -187,7 +190,8 @@ module IE
187190
'ie.usePerProcessProxy' => true,
188191
'ie.useLegacyFileUploadDialogHandling' => true,
189192
'ie.edgechromium' => true,
190-
'ie.edgepath' => '/path/to/edge'})
193+
'ie.edgepath' => '/path/to/edge',
194+
'silent' => true})
191195
end
192196
end
193197
end # Options

0 commit comments

Comments
 (0)