Skip to content

Commit

Permalink
[rb] don't redefine capabilities if not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Feb 10, 2021
1 parent 8f096e7 commit 6111d22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rb/lib/selenium/webdriver/common/options.rb
Expand Up @@ -25,6 +25,8 @@ class Options

def self.set_capabilities
(W3C_OPTIONS + self::CAPABILITIES.keys).each do |key|
next if method_defined? key

define_method key do
@options[key]
end
Expand Down

0 comments on commit 6111d22

Please sign in to comment.