InputText - web automation method

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

Applies to:
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.
// Assume nativeEdit is a <input type="text"> HTML element.
var coreObj = new ActiveXObject("Twebst.Core");
var e       = coreObj.AttachToNativeElement(nativeEdit);
See also:
Element | Click | Select | useHardwareInputEvents

© 2014 CodeCentrix Software. All rights reserved.