Forum Discussion
programdoubts
13 years agoContributor
Hi Mike Gunnett ,
Awesome, its working great, thank you very very very much.
This is what exactly im looking for.
can you pls help me in click the link also,
its collecting all the links and its clicking the 1st link
but when it tries to click the second link in loop its throwing an error like "the object invoked has disconnected from its clients"
Below is the code
pls let me know if u find the solution for this
thanks in advance
Awesome, its working great, thank you very very very much.
This is what exactly im looking for.
can you pls help me in click the link also,
its collecting all the links and its clicking the 1st link
but when it tries to click the second link in loop its throwing an error like "the object invoked has disconnected from its clients"
Below is the code
Sub Test
Dim page, links, linksCount, link, URL, i
Dim PropArray, ValuesArray
URL = "http://domain.com"
Browsers.Item(btIExplorer).Run(URL)
Set page = Sys.Browser("*").Page("*")
Set panel = page.FindChild("idStr", "Menutagname1_datatablestree", 14)
If panel.Exists then
Log.Message("Panel Exist")
End if
PropArray = Array("ObjectType")
ValuesArray = Array("Link")
links = panel.FindAllChildren(PropArray, ValuesArray, 3)
Log.Message("Total No. of links: "& UBound(links))
If UBound(links) > 0 Then
For i =0 To UBound(links)-1
Log.Message(i &": "&links(i).contentText)
links(i).click ' gettting error: when i=0 its clicking the link fine, but when i=1 its throwing error, when it try to click the second link its throwing an error
Next
End If
End Sub
pls let me know if u find the solution for this
thanks in advance
Related Content
- 5 years ago