[rb] don't redefine capabilities if not necessary
@@ -25,6 +25,8 @@ module Selenium
def self.set_capabilities
(W3C_OPTIONS + self::CAPABILITIES.keys).each do |key|
+ next if method_defined? key
+
define_method key do
@options[key]
end
