Module: CapybaraPageObject::Collections

Included in:
Component, Element, Page
Defined in:
lib/capybara-page-object/key_value.rb,
lib/capybara-page-object/collections.rb

Instance Method Summary collapse

Instance Method Details

#keyObject



3
4
5
# File 'lib/capybara-page-object/key_value.rb', line 3

def key
  source[:id]
end

#valueObject



7
8
9
# File 'lib/capybara-page-object/key_value.rb', line 7

def value
  text
end