public interface FormControlElement extends Element
Element.AlignTo
Modifier and Type | Method and Description |
---|---|
java.util.Optional<FormElement> |
form()
Returns an
Optional that contains the HTML element for the form that contains this
element, otherwise an empty Optional . |
boolean |
isEnabled()
Returns
true if the current form control is enabled. |
java.lang.String |
value()
Returns a string that represents the value associated with the form control.
|
void |
value(java.lang.String value)
Associates the given
value with the control. |
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
boolean isEnabled()
true
if the current form control is enabled.ObjectClosedException
- when this instance is closedjava.lang.String value()
ObjectClosedException
- when this instance is closedvoid value(java.lang.String value)
value
with the control.value
- the value to setObjectClosedException
- when this instance is closedjava.util.Optional<FormElement> form()
Optional
that contains the HTML element for the form that contains this
element, otherwise an empty Optional
.ObjectClosedException
- when this instance is closed