I am trying to print the name of all the links present on a page. I have written the below code-->
SystemUtil.Run "Chrome.exe","www.timesofindia.com"
Dim obj, objects,objectnames,i
Set obj = Description.Create
obj("micclass").value = "Link"
objects = Browser("micclass:=browser").Page("micclass:=Page").ChildObjects(obj)
MsgBox Err.number
For i = 0 To obj.Count-1 Step 1
childnames = objects.getROProperty("innertext")
print childnames(i)
Next
I am getting general run error in line objects = Browser("micclass:=browser").Page("micclass:=Page").ChildObjects(obj)
The line MsgBox Err.number
gives error number -2147467259
I tried to find out the cause with error number--2147467259 but didn't get any relevant answer. Please help.