public interface FormElement extends Element
Provides access to the contained control elements and the attributes of the form element.
Element.AlignTo
Modifier and Type | Method and Description |
---|---|
java.lang.String |
action()
Returns the value of the action attribute of this form.
|
java.util.List<FormControlElement> |
controls()
Returns an immutable list of the form controls or an empty list if the form got no controls
on it.
|
java.lang.String |
method()
Returns the value of the method attribute of this form.
|
java.lang.String |
name()
Returns the value of the name attribute of this form.
|
void |
reset()
Restores default values of the elements on the form.
|
void |
submit()
Submits the form represented by the element.
|
attributeNodes, attributes, attributeValue, blur, boundingClientRect, focus, hasAttribute, innerHtml, innerHtml, innerText, innerText, outerHtml, outerHtml, putAttribute, removeAttribute, scrollIntoView
appendChild, children, click, close, compareDocumentPosition, document, evaluate, evaluate, insertChild, nextSibling, nodeName, nodeValue, nodeValue, parent, previousSibling, removeChild, replaceChild, textContent, textContent, type, xPath
addEventListener, dispatch, eventListeners, removeEventListener
findElementByClassName, findElementByCssSelector, findElementById, findElementByName, findElementByTagName, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByName, findElementsByTagName
java.lang.String action()
ObjectClosedException
- when this instance is closedjava.lang.String name()
ObjectClosedException
- when this instance is closedjava.lang.String method()
ObjectClosedException
- when this instance is closedvoid reset()
ObjectClosedException
- when this instance is closedvoid submit()
ObjectClosedException
- when this instance is closedjava.util.List<FormControlElement> controls()
ObjectClosedException
- when this instance is closed