Class: Locator::Element::Button

Inherits:
ElementsList show all
Defined in:
lib/locator/element/button.rb

Instance Attribute Summary

Attributes inherited from ElementsList

#elements

Attributes inherited from Locator::Element

#attributes, #css, #locatables, #name

Instance Method Summary collapse

Methods inherited from ElementsList

#lookup

Methods inherited from Locator::Element

#all, #locate, #xpath

Constructor Details

#initializeButton

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, :matches => [:value], :type => %w(submit button image))
  button = Element.new(:button, :matches => [:content])
  super(input, button)
end