lib/page-object/accessors.rb in page-object-0.5.1 vs lib/page-object/accessors.rb in page-object-0.5.2

- old
+ new

@@ -321,9 +321,11 @@ # * :index => Watir and Selenium # * :name => Watir and Selenium # * :text => Watir and Selenium # * :value => Watir and Selenium # * :xpath => Watir and Selenium + # * :src => Watir and Selenium (input type=image only) + # * :alt => Watir and Selenium (input type=image only) # @param optional block to be invoked when element method is called # def button(name, identifier=nil, &block) define_method(name) do return platform.click_button_for identifier.clone unless block_given?