Skip to content

Commit d381682

Browse files
p0dejebarancev
authored andcommitted
ruby: Ensure Firefox capabilities are proper instance by default
Signed-off-by: Alexei Barantsev <[email protected]>
1 parent 70ce5e4 commit d381682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: rb/lib/selenium/webdriver/firefox/bridge.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def initialize(opts = {})
2828
http_client = opts.delete(:http_client)
2929
proxy = opts.delete(:proxy)
3030

31-
caps = opts.delete(:desired_capabilities) || {}
31+
caps = opts.delete(:desired_capabilities) { Remote::Capabilities.firefox }
3232

3333
@launcher = create_launcher(port, profile)
3434

0 commit comments

Comments
 (0)