Class: Locator::Element::Input
- Inherits:
-
FormElement
- Object
- Locator::Element
- FormElement
- Locator::Element::Input
- Defined in:
- lib/locator/element/input.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Locator::Element
#attributes, #css, #locatables, #name
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Input
constructor
A new instance of Input.
Methods inherited from FormElement
Methods inherited from Locator::Element
Constructor Details
#initialize(attributes = {}) ⇒ Input
Returns a new instance of Input.
4 5 6 7 |
# File 'lib/locator/element/input.rb', line 4 def initialize(attributes = {}) defaults = { :type => [:text, :password , :email, :url, :search, :tel, :color] } super(:input, defaults.merge(attributes)) end |