MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / appendOption

Method appendOption

src/main/java/org/htmlunit/html/HtmlSelect.java:240–244  ·  view source on GitHub ↗

Add a new option at the end. @param newOption the new option to add

(final HtmlOption newOption)

Source from the content-addressed store, hash-verified

238 * @param newOption the new option to add
239 */
240 public void appendOption(final HtmlOption newOption) {
241 appendChild(newOption);
242
243 ensureSelectedIndex();
244 }
245
246 /**
247 * {@inheritDoc}

Callers 3

putMethod · 0.45
setLengthMethod · 0.45
addMethod · 0.45

Calls 2

appendChildMethod · 0.95
ensureSelectedIndexMethod · 0.95

Tested by

no test coverage detected