Class: Watir::Form

Inherits:
HTMLElement show all
Defined in:
lib/watir-webdriver/elements/form.rb,
lib/watir-webdriver/elements/generated.rb

Constant Summary

Constants inherited from BaseElement

BaseElement::IGNORED_ATTRIBUTES

Instance Method Summary collapse

Methods inherited from BaseElement

attribute_list, #attribute_value, attributes, #click, #double_click, #driver, #element, #exists?, #fire_event, #flash, #focus, #html, #initialize, #inspect, #parent, #right_click, #run_checkers, #send_keys, #style, #tag_name, #text, typed_attributes, #value, #visible?

Methods included from Container

add

Methods included from XpathSupport

#element_by_xpath, #elements_by_xpath

Constructor Details

This class inherits a constructor from Watir::BaseElement

Instance Method Details

#submitObject

Submits the form.

This method should be avoided - invoke the user interface element that triggers the submit instead.



11
12
13
14
# File 'lib/watir-webdriver/elements/form.rb', line 11

def submit
  assert_exists
  @element.submit
end