public interface FormControlElement extends Element
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. |
attributes, attributeValue, boundingClientRect, hasAttribute, innerHtml, innerHtml, innerText, innerText, putAttribute, removeAttribute
appendChild, children, click, evaluate, evaluate, insertChild, nextSibling, nodeName, nodeValue, nodeValue, parent, previousSibling, removeChild, replaceChild, textContent, textContent, type
addEventListener, dispatch, eventListeners, removeEventListener
findElementByClassName, findElementByCssSelector, findElementById, findElementByName, findElementByTagName, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByName, findElementsByTagName
boolean isEnabled()
true
if the current form control is enabled.java.lang.IllegalStateException
- when the document this instance belongs to is closedjava.lang.String value()
java.lang.IllegalStateException
- when the document this instance belongs to is closedvoid value(java.lang.String value)
value
with the control.value
- the value to setjava.lang.IllegalStateException
- when the document this instance belongs to is closedjava.util.Optional<FormElement> form()
Optional
that contains the HTML element for the form that contains this
element, otherwise an empty Optional
.java.lang.IllegalStateException
- when the document this instance belongs to is closed