Skip to content

Commit 6111d22

Browse files
committed
[rb] don't redefine capabilities if not necessary
1 parent 8f096e7 commit 6111d22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rb/lib/selenium/webdriver/common/options.rb

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class Options
2525

2626
def self.set_capabilities
2727
(W3C_OPTIONS + self::CAPABILITIES.keys).each do |key|
28+
next if method_defined? key
29+
2830
define_method key do
2931
@options[key]
3032
end

0 commit comments

Comments
 (0)