/src/main/java/org/htmlunit/html/HtmlElement.java
if ( domText != null) {
if ( keyboard.isStartAtEnd ( ) ) {
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> if (this instanceof SelectableTextInput) { final SelectableTextInput textInput = (SelectableTextInput) this; textInput.setSelectionStart(textInput.getText().length()); } else { final DomText domText = getDoTypeNode();