Here is what I am trying:
Set WshShell = WScript.CreateObject("WScript.Shell")
Dim ie
Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = TRUE
ie.Navigate(" Do until ie.ReadyState = 4
WScript.Sleep 50
Loop
WshShell.AppActivate "My Test Form"
set urls = ie.document.all.tags("a")
' wsh.echo urls[0].innerHTML
' wsh.echo ie.document.all.tags("a")[0].innerHTML
toturls = urls.length
wsh.echo "Number of URLs:", toturls, vbNewline
All of it works, except the two that have been remarked out as they fail.. what I want to be able to do is extract the actual url from the array in urls.
Any help would be appreciated.... it seems to work with javascript, but I need it to work with vbscript.
Set WshShell = WScript.CreateObject("WScript.Shell")
Dim ie
Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = TRUE
ie.Navigate(" Do until ie.ReadyState = 4
WScript.Sleep 50
Loop
WshShell.AppActivate "My Test Form"
set urls = ie.document.all.tags("a")
' wsh.echo urls[0].innerHTML
' wsh.echo ie.document.all.tags("a")[0].innerHTML
toturls = urls.length
wsh.echo "Number of URLs:", toturls, vbNewline
All of it works, except the two that have been remarked out as they fail.. what I want to be able to do is extract the actual url from the array in urls.
Any help would be appreciated.... it seems to work with javascript, but I need it to work with vbscript.