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

Method getType

src/main/java/org/htmlunit/html/HtmlButton.java:254–263  ·  view source on GitHub ↗

@return the normalized type value (submit|reset|button).

()

Source from the content-addressed store, hash-verified

252 * @return the normalized type value (submit|reset|button).
253 */
254 public String getType() {
255 final String type = getTypeAttribute();
256 if (TYPE_RESET.equalsIgnoreCase(type)) {
257 return TYPE_RESET;
258 }
259 if (TYPE_BUTTON.equalsIgnoreCase(type)) {
260 return TYPE_BUTTON;
261 }
262 return TYPE_SUBMIT;
263 }
264
265 /**
266 * Returns the value of the attribute {@code disabled}. Refer to the

Callers 3

doClickStateUpdateMethod · 0.95
isValidMethod · 0.95
willValidateMethod · 0.95

Calls 1

getTypeAttributeMethod · 0.95

Tested by

no test coverage detected