File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/selenium/webdriver/common
spec/integration/selenium/webdriver Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def run(command)
76
76
begin
77
77
stdout , stderr , status = Open3 . capture3 ( command )
78
78
rescue StandardError => e
79
- raise Error ::WebDriverError , "Unsuccessful command executed: #{ command } " , e
79
+ raise Error ::WebDriverError , "Unsuccessful command executed: #{ command } " , e . message
80
80
end
81
81
82
82
if status . exitstatus . positive?
Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ module WebDriver
28
28
reset_driver! do |driver |
29
29
caps = driver . capabilities
30
30
expect ( caps . proxy ) . to be_nil
31
- expect ( caps . browser_version ) . to match ( /^\d \d \. / )
31
+ expect ( caps . browser_version ) . to match ( /^\d \d \d ? \ . / )
32
32
expect ( caps . platform_name ) . not_to be_nil
33
33
34
- expect ( caps . accept_insecure_certs ) . to be == false
34
+ expect ( caps . accept_insecure_certs ) . to be == ( caps . browser_name == 'firefox' )
35
35
expect ( caps . page_load_strategy ) . to be == 'normal'
36
36
expect ( caps . implicit_timeout ) . to be_zero
37
37
expect ( caps . page_load_timeout ) . to be == 300000
You can’t perform that action at this time.
0 commit comments