InputText - web automation method

IE automation method that simulates users keystrokes inside web forms editable controls ( IHTMLInputElement and IHTMLTextAreaElement ).

Applies to:
Element
  elementObj.InputText("input_string");
Arguments:
Remarks:
This IE automation method automatically fills out web forms by simulating keystrokes in HTML editable controls, using hardware or Internet Explorer HTML events, depending on useHardwareInputEvents property. All necessary HTML events are fired up to simulate user's behavior (onkeydown, onkeydown, onkeyup, onkeypress, onchange). If the method is applied to an Element that is not an editable control, then an IE automation exception is thrown and the lastError property is set to INVALID_OPERATION_ERROR.
Example:
// Assume nativeEdit is a <input type="text"> HTML element.
var coreObj = new ActiveXObject("OpenTwebst.Core");
var e       = coreObj.AttachToNativeElement(nativeEdit);
e.InputText("abcdefgh");
		
See also:
Element | Click | Select | useHardwareInputEvents

© 2017 CodeCentrix Software. All rights reserved.