public interface DOMHTMLOptionsCollection
| Modifier and Type | Method and Description | 
|---|---|
| long | getLength() | 
| DOMHTMLOptionElement | item(long index)This method retrieves a node specified by ordinal index. | 
| DOMHTMLOptionElement | itemByText(String text)Returns the  DOMHTMLOptionElementobject that has the specified text. | 
| DOMHTMLOptionElement | itemByValue(String value)Returns the  DOMHTMLOptionElementobject that corresponds to the specified value. | 
| DOMHTMLOptionElement | namedItem(String name)This method retrieves a  DOMHTMLOptionElementusing a name. | 
long getLength()
DOMHTMLOptionElement item(long index)
DOMHTMLOptionElement namedItem(String name)
DOMHTMLOptionElement using a name. It first searches for a node with a matching id
 attribute. If it doesn't find one, it then searches for a Node with a matching name attribute, but only on those
 elements that are allowed a name attribute. NOTE: on SWT_MOZILLA browser, this method is case insensitive in HTML
 documents and case sensitive in XHTML documents. On HTMLUNIT, it is insensitivename - DOMHTMLOptionElement itemByValue(String value)
DOMHTMLOptionElement object that corresponds to the specified value.value - the value to search byDOMHTMLOptionElement object that corresponds to the specified value or null if not foundDOMHTMLOptionElement itemByText(String text)
DOMHTMLOptionElement object that has the specified text.text - the text to search byDOMHTMLOptionElement object that has the specified text, or null if not foundCopyright © 2020 OXPath Team. All rights reserved.