after a navigate event you have to wait for the document your navigating to load before trying to interact with any elements on the new document
so your 4 lines have at least that issue...
Code: Select all
ie := ComObjCreate(("InternetExplorer.Application"))
ie.Visible:=True
ie.Navigate("https://xxxx/xxxx/man.htm")
while ie.readyState != 4 || ie.document.readyState != "complete" || ie.busy)
sleep 100
; or simply use a hard coded sleep of 5000 if you always know that 5 seconds is what it takes
ie.document.frames["application"].getElementById("USERNAME.DUMMY.DUMMY").value := "Mary"
Code: Select all
ie.document.parentWindow.frames["application"].document.