Method: TestCentricity::PageObject.buttons

Defined in:
lib/testcentricity_web/web_core/page_object.rb

.buttons(element_hash) ⇒ Object

Declare and instantiate a collection of buttons for this page object.

Examples:

buttons new_account_button:  'button#new-account',
        save_button:         'button#save',
        cancel_button:       'button#cancel'

Parameters:

  • element_hash (Hash)

    names of buttons (as a symbol) and CSS selectors or XPath expressions that uniquely identifies buttons



47
48
49
# File 'lib/testcentricity_web/web_core/page_object.rb', line 47

def self.buttons(element_hash)
  element_hash.each(&method(:button))
end