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, #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 8 |
# File 'lib/locator/element/input.rb', line 4 def initialize(attributes = {}) attributes = { :type => [:text, :password , :email, :url, :search, :tel, :color] }.merge(attributes) matchables = { :equals => [:id, :name] } super('input', { :equals => [:id, :name] }, attributes) end |