From 8cd4954c7ae07fa62c88decd21f59bef16eb94ba Mon Sep 17 00:00:00 2001 From: titusfortner Date: Tue, 29 Nov 2022 21:45:25 -0600 Subject: [PATCH] [rb] fix failing specs --- rb/lib/selenium/webdriver/common/selenium_manager.rb | 2 +- rb/spec/integration/selenium/webdriver/driver_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rb/lib/selenium/webdriver/common/selenium_manager.rb b/rb/lib/selenium/webdriver/common/selenium_manager.rb index a0417bca706aa..14c30e4b02aae 100644 --- a/rb/lib/selenium/webdriver/common/selenium_manager.rb +++ b/rb/lib/selenium/webdriver/common/selenium_manager.rb @@ -76,7 +76,7 @@ def run(command) begin stdout, stderr, status = Open3.capture3(command) rescue StandardError => e - raise Error::WebDriverError, "Unsuccessful command executed: #{command}", e + raise Error::WebDriverError, "Unsuccessful command executed: #{command}", e.message end if status.exitstatus.positive? diff --git a/rb/spec/integration/selenium/webdriver/driver_spec.rb b/rb/spec/integration/selenium/webdriver/driver_spec.rb index 473a3d0e2c84e..14c89aae35fce 100644 --- a/rb/spec/integration/selenium/webdriver/driver_spec.rb +++ b/rb/spec/integration/selenium/webdriver/driver_spec.rb @@ -28,10 +28,10 @@ module WebDriver reset_driver! do |driver| caps = driver.capabilities expect(caps.proxy).to be_nil - expect(caps.browser_version).to match(/^\d\d\./) + expect(caps.browser_version).to match(/^\d\d\d?\./) expect(caps.platform_name).not_to be_nil - expect(caps.accept_insecure_certs).to be == false + expect(caps.accept_insecure_certs).to be == (caps.browser_name == 'firefox') expect(caps.page_load_strategy).to be == 'normal' expect(caps.implicit_timeout).to be_zero expect(caps.page_load_timeout).to be == 300000