Skip to content

Commit 5eb3390

Browse files
committed
Fix listener on legacy Firefox driver
1 parent 3edcd62 commit 5eb3390

File tree

1 file changed

+2
-1
lines changed
  • rb/lib/selenium/webdriver/firefox/legacy

1 file changed

+2
-1
lines changed

rb/lib/selenium/webdriver/firefox/legacy/driver.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,15 @@ def initialize(opts = {})
4848
opts[:url] = @launcher.url
4949
end
5050

51+
listener = opts.delete(:listener)
5152
WebDriver.logger.info 'Skipping handshake as we know it is OSS.'
5253
desired_capabilities = opts.delete(:desired_capabilities)
5354
bridge = Remote::Bridge.new(opts)
5455
capabilities = bridge.create_session(desired_capabilities)
5556
@bridge = Remote::OSS::Bridge.new(capabilities, bridge.session_id, opts)
5657

5758
begin
58-
super(@bridge, listener: opts[:listener])
59+
super(@bridge, listener: listener)
5960
rescue
6061
@launcher.quit if @launcher
6162
raise

0 commit comments

Comments
 (0)