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

Method setSelected

src/main/java/org/htmlunit/html/HtmlOption.java:77–80  ·  view source on GitHub ↗

Sets the selected state of this option. This will possibly also change the selected properties of sibling option elements. @param selected true if this option should be selected @return the page that occupies this window after this change is made (may or may not be the same as the original

(final boolean selected)

Source from the content-addressed store, hash-verified

75 * may not be the same as the original page)
76 */
77 public Page setSelected(final boolean selected) {
78 setSelected(selected, true, false, false, false);
79 return getPage();
80 }
81
82 /**
83 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>

Callers 7

noOnchangeFromJSMethod · 0.95
selectMethod · 0.95
jsConstructorMethod · 0.95
doClickStateUpdateMethod · 0.95
setSelectedAttributeMethod · 0.45

Calls 5

isSelectedMethod · 0.95
getEnclosingSelectMethod · 0.95
setSelectedAttributeMethod · 0.95
setSelectedInternalMethod · 0.95
getPageMethod · 0.65

Tested by 3

noOnchangeFromJSMethod · 0.76
selectMethod · 0.76