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, #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
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