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

Method type

src/main/java/org/htmlunit/html/HtmlElement.java:521–525  ·  view source on GitHub ↗

Simulates typing the specified text while this element has focus. Note that for some elements, typing '\n' submits the enclosed form. @param text the text you with to simulate typing @exception IOException If an IO error occurs

(final String text)

Source from the content-addressed store, hash-verified

519 * @exception IOException If an IO error occurs
520 */
521 public void type(final String text) throws IOException {
522 for (final char ch : text.toCharArray()) {
523 type(ch);
524 }
525 }
526
527 /**
528 * Simulates typing the specified character while this element has focus, returning the page contained

Calls 15

getFocusedElementMethod · 0.95
isShiftNeededMethod · 0.95
isAbortedMethod · 0.95
doTypeMethod · 0.95
getBodyMethod · 0.95
getEnclosingFormMethod · 0.95
isSubmittableByEnterMethod · 0.95
submitMethod · 0.95
isJavaScriptEnabledMethod · 0.95
getJavaScriptEngineMethod · 0.95
getCurrentWindowMethod · 0.95
getDoTypeNodeMethod · 0.95

Tested by 1