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

Method getInputsByValue

src/main/java/org/htmlunit/html/HtmlForm.java:968–978  ·  view source on GitHub ↗

Returns all the inputs in this form with the specified value. @param value the value to search for @return all the inputs in this form with the specified value

(final String value)

Source from the content-addressed store, hash-verified

966 * @return all the inputs in this form with the specified value
967 */
968 public List<HtmlInput> getInputsByValue(final String value) {
969 final List<HtmlInput> results = new ArrayList<>();
970
971 for (final HtmlElement element : getElements(htmlElement -> htmlElement instanceof HtmlInput)) {
972 if (Objects.equals(((HtmlInput) element).getValue(), value)) {
973 results.add((HtmlInput) element);
974 }
975 }
976
977 return results;
978 }
979
980 /**
981 * {@inheritDoc}

Callers 3

getInputByValueMethod · 0.95
getInputByValueMethod · 0.95

Calls 4

getElementsMethod · 0.95
equalsMethod · 0.45
getValueMethod · 0.45
addMethod · 0.45

Tested by 2

getInputByValueMethod · 0.76