lib/selenium/webdriver/element.rb in selenium-webdriver-0.0.27 vs lib/selenium/webdriver/element.rb in selenium-webdriver-0.0.28
- old
+ new
@@ -17,9 +17,18 @@
def inspect
'#<%s:0x%x id=%s tag_name=%s>' % [self.class, hash*2, @id.inspect, tag_name.inspect]
end
+ def ==(other)
+ other.kind_of?(self.class) && bridge.elementEquals(self, other)
+ end
+ alias_method :eql?, :==
+
+ def hash
+ ref.hash
+ end
+
#
# Click the element
#
def click
\ No newline at end of file