Class: Locator::Element::Input

Inherits:
FormElement show all
Defined in:
lib/locator/element/input.rb

Direct Known Subclasses

CheckBox, File, HiddenField, RadioButton

Instance Attribute Summary

Attributes inherited from Locator::Element

#attributes, #css, #locatables, #name

Instance Method Summary collapse

Methods inherited from FormElement

#lookup

Methods inherited from Locator::Element

#all, #locate, #xpath

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