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)
| 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} |