Class: Watir::FormLocator

Inherits:
TaggedElementLocator show all
Defined in:
lib/watir/locator.rb

Instance Method Summary collapse

Methods inherited from TaggedElementLocator

#initialize, #locate, #match?, #set_specifier

Methods inherited from Locator

#match_with_specifiers?, #normalize_specifiers!

Methods included from Watir

_register, _unregister, autoit, #dialog, until_with_timeout

Constructor Details

This class inherits a constructor from Watir::TaggedElementLocator

Instance Method Details

#each_element(tag) ⇒ Object



117
118
119
120
121
# File 'lib/watir/locator.rb', line 117

def each_element(tag)
  @container.document.forms.each do |form|
    yield FormElement.new(form)
  end
end