public interface OptionElement extends Element
Provides access to the attributes of the option element.
Modifier and Type | Method and Description |
---|---|
boolean |
isSelected()
Returns
true if the current option element is selected. |
void |
select()
Selects the current option element.
|
void |
unselect()
Un-selects the current option element.
|
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 isSelected()
true
if the current option element is selected.java.lang.IllegalStateException
- when the document this instance belongs to is closedvoid select()
java.lang.IllegalStateException
- when the document this instance belongs to is closedvoid unselect()
java.lang.IllegalStateException
- when the document this instance belongs to is closed