Class: Locator::Element::Button
- Inherits:
-
ElementsList
- Object
- Locator::Element
- ElementsList
- Locator::Element::Button
- Defined in:
- lib/locator/element/button.rb
Instance Attribute Summary
Attributes inherited from ElementsList
Attributes inherited from Locator::Element
#attributes, #locatables, #name
Instance Method Summary collapse
-
#initialize ⇒ Button
constructor
A new instance of Button.
Methods inherited from ElementsList
Methods inherited from Locator::Element
Constructor Details
#initialize ⇒ Button
Returns a new instance of Button.
4 5 6 7 8 |
# File 'lib/locator/element/button.rb', line 4 def initialize input = Element.new('input', { :equals => [:id, :name], :matches => [:value] }, :type => %w(submit button image)) = Element.new('button', :equals => [:id, :name], :matches => [:content]) super(input, ) end |