File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/selenium/webdriver/common
spec/unit/selenium/webdriver/ie Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ def w3c?(key)
126
126
end
127
127
128
128
def process_w3c_options ( options )
129
- w3c_options = options . select { |key , _val | w3c? ( key ) }
129
+ w3c_options = options . select { |key , val | w3c? ( key ) && ! val . nil? }
130
130
w3c_options [ :unhandled_prompt_behavior ] &&= w3c_options [ :unhandled_prompt_behavior ] &.to_s &.tr ( '_' , ' ' )
131
131
options . delete_if { |key , _val | w3c? ( key ) }
132
132
w3c_options
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ module IE
84
84
end
85
85
86
86
it 'is created when :url is not provided' do
87
- allow ( SeleniumManager ) . to receive ( :driver_path ) . and_return ( 'path' )
87
+ allow ( DriverFinder ) . to receive ( :path ) . and_return ( 'path' )
88
88
allow ( Platform ) . to receive ( :assert_file )
89
89
allow ( Platform ) . to receive ( :assert_executable )
90
90
allow ( described_class ) . to receive ( :new ) . and_return ( service )
You can’t perform that action at this time.
0 commit comments