Skip to content

Commit

Permalink
[rb] fix failing specs
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Nov 30, 2022
1 parent 285dace commit 8cd4954
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/common/selenium_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
4 changes: 2 additions & 2 deletions rb/spec/integration/selenium/webdriver/driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cd4954

Please sign in to comment.