lib/webdriver/element.rb in webdriver-0.6.4 vs lib/webdriver/element.rb in webdriver-0.7.0

- old
+ new

@@ -7,9 +7,14 @@ @session_connection = connection @connection = Webdriver::PrefixConnection.new "element/#{@id}", connection end + def ==(other) + return false unless other.is_a? Webdriver::Element + @id == other.id + end + def screenshot @connection.get "screenshot" end # checkbox