<textarea class="text sr bHighlight bHighlight" id="arid_WIN_3_1000000000" style="left: 117px; top: 0px; width: 175px; height: 21px;" rows="1" cols="20" wrap="off" arencryptdataatrest="0" arautoctt="400" arautocak="0" maxlen="100"></textarea>
Tried the following:
Code: Select all
WB.document.getELementById("arid_WIN_3_1000000000").value := "000000000000000"
TextEvent := WB.document.createEvent("TextEvent")
TextEvent.initTextEvent("TextInput",True,True, "", "test", 9, "en-US")
WB.document.getElementByID("arid_WIN_3_1000000000").dispatchEvent(TextEvent)
An example from another forum on here I tried using:
Code: Select all
MouseDownEvent := WB.document.createEvent("MouseEvent")
MouseDownEvent.initMouseEvent("mousedown",true,false, _, _, _, _, _, _, _, _, _, _, _, _)
MouseUpEvent := WB.document.createEvent("MouseEvent")
MouseUpEvent.initMouseEvent("mouseup",true,false, _, _, _, _, _, _, _, _, _, _, _, _)
WB.document.getElementByID("arid_WIN_3_1000000000").dispatchEvent(MouseDownEvent)
WB.document.getElementByID("arid_WIN_3_1000000000").dispatchEvent(MouseUpEvent)