K
kocsism
Guest
I'm trying to open a website where I only know the URL for the main page. So I have a script to open Internet Explorer and navigate to that website however after I would like the script to find a specific String "File". This string can be found twice. Once as "File" and once in the "Profile" word, so what I need is to find the exact String "File" and then click on it, it would open a javascript menu where again it should find another specific string "Incident..." and open the link behind it.
Hope I was clear.
The script I have will open the browser navigate to the website, but can not make it to find the keyword and initiate the click event, could you help me with that?
I have the following code so far:
Set ie = WScript.CreateObject("InternetExplorer.Application")
ie.ToolBar = 1
ie.StatusBar = 0
ie.Width = 800
ie.Height = 600
ie.Visible = 1
Do While ie.Busy: Loop
ie.Navigate("https://site link")
WScript.Sleep 1000
For Each a In IE.Document.GetElementsByTagName("")
If LCase(a.href = LCase("File")) Then
a.Click
Exit For
End If
Next
Continue reading...
Hope I was clear.
The script I have will open the browser navigate to the website, but can not make it to find the keyword and initiate the click event, could you help me with that?
I have the following code so far:
Set ie = WScript.CreateObject("InternetExplorer.Application")
ie.ToolBar = 1
ie.StatusBar = 0
ie.Width = 800
ie.Height = 600
ie.Visible = 1
Do While ie.Busy: Loop
ie.Navigate("https://site link")
WScript.Sleep 1000
For Each a In IE.Document.GetElementsByTagName("")
If LCase(a.href = LCase("File")) Then
a.Click
Exit For
End If
Next
Continue reading...