[rb] implement browser option equality check
@@ -36,6 +36,7 @@ module Selenium
end
end
end
+ end
attr_accessor :options
@@ -68,6 +69,14 @@ module Selenium
@options[name] = value
end
+ def ==(other)
+ return false unless other.is_a? self.class
+
+ as_json == other.as_json
+ end
+
+ alias_method :eql?, :==
+
#
# @api private
#
