MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / fireEvent

Method fireEvent

src/main/java/org/htmlunit/html/DomElement.java:1524–1529  ·  view source on GitHub ↗

INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. Shortcut for #fireEvent(Event). @param eventType the event type (like "load", "click") @return the execution result, or null if nothing is executed

(final String eventType)

Source from the content-addressed store, hash-verified

1522 * @return the execution result, or {@code null} if nothing is executed
1523 */
1524 public ScriptResult fireEvent(final String eventType) {
1525 if (getPage().getWebClient().isJavaScriptEnabled()) {
1526 return fireEvent(new Event(this, eventType));
1527 }
1528 return null;
1529 }
1530
1531 /**
1532 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>

Callers 5

setCurrentWindowMethod · 0.95
doClickFireClickEventMethod · 0.95
dblClickMethod · 0.95
doMouseEventMethod · 0.95
setFocusedElementMethod · 0.95

Calls 13

isJavaScriptEnabledMethod · 0.95
getJavaScriptEngineMethod · 0.95
fireEventMethod · 0.95
preventDefaultMethod · 0.95
getHtmlPageOrNullMethod · 0.80
isAbortedMethod · 0.80
getWebClientMethod · 0.65
getPageMethod · 0.65
isDebugEnabledMethod · 0.65
debugMethod · 0.65
getScriptableObjectMethod · 0.65
handlesMethod · 0.45

Tested by

no test coverage detected