/src/main/java/org/htmlunit/html/HtmlElement.java
if ( keyboard.isStartAtEnd ( ) ) { if ( this instanceof SelectableTextInput ) { final SelectableTextInput textInput = ( SelectableTextInput ) this; textInput.setSelectionStart ( textInput.getText ( ) .length ( ) ) ; }
public Page type(final int keyCode) { return type(keyCode, true, true, true, true); } public Page type(final Keyboard keyboard) throws IOException { Page page = null; final List<Object[]> keys = keyboard.getKeys(); <extra_id_0> else { final DomText domText = getDoTypeNode(); if (domText != null) { domText.moveSelectionToEnd(); } }