diff --git a/rb/lib/selenium/webdriver/ie/options.rb b/rb/lib/selenium/webdriver/ie/options.rb index 330cf19a79ff9..ee3f7e8a1b6e7 100644 --- a/rb/lib/selenium/webdriver/ie/options.rb +++ b/rb/lib/selenium/webdriver/ie/options.rb @@ -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' diff --git a/rb/spec/unit/selenium/webdriver/ie/options_spec.rb b/rb/spec/unit/selenium/webdriver/ie/options_spec.rb index b5e17a17eb0bd..30df493003f3b 100644 --- a/rb/spec/unit/selenium/webdriver/ie/options_spec.rb +++ b/rb/spec/unit/selenium/webdriver/ie/options_spec.rb @@ -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]) @@ -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 @@ -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, @@ -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