Package | Description |
---|---|
com.gargoylesoftware.htmlunit.html |
Classes specific to html pages
|
com.gargoylesoftware.htmlunit.javascript.host |
Implementations of the various javascript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
Modifier and Type | Method and Description |
---|---|
HtmlOption |
HtmlSelect.getOption(int index)
Return the indexed option.
|
HtmlOption |
HtmlSelect.getOptionByValue(String value)
Return the HtmlOption object that corresponds to the specified value
|
Modifier and Type | Method and Description |
---|---|
void |
HtmlSelect.appendOption(HtmlOption newOption)
Add a new option at the end.
|
void |
HtmlSelect.replaceOption(int index,
HtmlOption newOption)
Replace an option at the given index with a new option.
|
Page |
HtmlSelect.setSelectedAttribute(HtmlOption selectedOption,
boolean isSelected)
Set the "selected" state of the specified option.
|
Modifier and Type | Method and Description |
---|---|
protected void |
HTMLSelectElement.addBefore(Option newOptionObject,
HtmlOption beforeOption)
Adds the option (and create the associated dom node if needed) before the specified one
or at the end if the specified one in null
|
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.