lib/page-object/elements/element.rb in page-object-0.6 vs lib/page-object/elements/element.rb in page-object-0.6.1

- old
+ new

@@ -36,10 +36,17 @@ # return true if the element is enabled # def enabled? @element.enabled? end + + # + # return true if the element is not enabled + # + def disabled? + not enabled? + end # # get the value of the given CSS property # def style(property) @@ -81,10 +88,10 @@ # @private # delegate calls to driver element def method_missing(*args, &block) m = args.shift puts "*** DEPRECATION WARNING" - puts "*** You are calling a method named #{m}." + puts "*** You are calling a method named #{m} at #{caller[0]}." puts "*** This method does not exist in page-object so it is being passed to the driver." puts "*** This feature will be removed in the near future." puts "*** Please change your code to call the correct page-object method." puts "*** If you are using functionality that does not exist in page-object please request it be added." begin