davidleite
05-06-2010, 04:39 PM
Hello everybody!
I'm trying to fill in some textboxes on a website, using the InternetExplorer object. This should be as simple as accessing the form with MyIEobject.document.all("formname").etc ... But I don't know what happened, cause no forms show up at all.
So I found out the website is designed with frames. Then I go ahead and try to access the frames, and then the forms, with no charm. And it turns out that my IE object has really a lot of elements, which made me spend about 5 hours trying to look for the forms, and nothing.
The conclusion is, I have about 10 fields inside the "content" frame, and I can't find them anywhere inside the IE object. The same also happens to the links on the menu...
Is there anyway they could be blocking DHTML to actually see the forms or something?
Here's the code I'm using:
Dim objShell As Shell
Dim objIE As InternetExplorer
Dim objExplorer As ShellFolderView
Dim obj As Object
Set objShell = New Shell
For Each obj In objShell.Windows
If TypeName(obj.Document) = "HTMLDocument" Then
Set objIE = obj
End If
Next obj
I'm just using it to grab the IE object, which is actually already open.
Anyone sees a solution?
Thanks in advance!
I'm trying to fill in some textboxes on a website, using the InternetExplorer object. This should be as simple as accessing the form with MyIEobject.document.all("formname").etc ... But I don't know what happened, cause no forms show up at all.
So I found out the website is designed with frames. Then I go ahead and try to access the frames, and then the forms, with no charm. And it turns out that my IE object has really a lot of elements, which made me spend about 5 hours trying to look for the forms, and nothing.
The conclusion is, I have about 10 fields inside the "content" frame, and I can't find them anywhere inside the IE object. The same also happens to the links on the menu...
Is there anyway they could be blocking DHTML to actually see the forms or something?
Here's the code I'm using:
Dim objShell As Shell
Dim objIE As InternetExplorer
Dim objExplorer As ShellFolderView
Dim obj As Object
Set objShell = New Shell
For Each obj In objShell.Windows
If TypeName(obj.Document) = "HTMLDocument" Then
Set objIE = obj
End If
Next obj
I'm just using it to grab the IE object, which is actually already open.
Anyone sees a solution?
Thanks in advance!