Hello,
We have a website on our intranet that has frames and text boxes that
we need to populate with data automatically with VBScript. I have
been able to populate other web pages with VBScript when they don't
have frames, but cannot figure out how to populate them when they have
frames.
I have been trying to search the existing posts, but I still can't
seem to get this to work.
I found a website on the Internet that has frames and input boxes that
are similar to our intranet web page.
http://www.iopus.com/iim/demo/frames
Does anybody know how I could use VBScript to populate these text
boxes within the frames? This is the code I have figured out so far:
Const URL = "http://www.iopus.com/iim/demo/frames"
With WScript.CreateObject("InternetExplorer.Application")
.Visible = True
.Navigate URL
Do Until .ReadyState = 4
WScript.Sleep 50 ' wait for page to load
Loop
With .document.forms(1) ' I DON'T KNOW WHAT ELSE GOES HERE TO
REFERENCE TO FRAME
.T1.value = "Hello" ' enter company into a textbox
End With
Would anybody be willing to show me what I am missing in my code?
Thank you in advance,
Shawn