06-12-2012, 11:50 AM
Hi All,
I am having error while click on Multiple Links using childobjects method.
I am calculating the link count, for click on each link i am using For loop
but it works only for first link from second link is showing General Error.
Below i am using code like this.
I am having error while click on Multiple Links using childobjects method.
I am calculating the link count, for click on each link i am using For loop
but it works only for first link from second link is showing General Error.
Below i am using code like this.
Code:
If Browser("Browser").Page("-- Welcome to YANG MING").Frame("right_3").WebTable("Service").Exist(10) Then
Set Desc = Description.Create( )
Desc("micclass").Value = "Link"
Set objLinks = Browser("Browser").Page("-- Welcome to YANG MING").Frame("right_8").WebTable("Service").ChildObjects(Desc)
LinkCount = objLinks.Count
' msgbox(LinkCount)
For l = 0 to LinkCount-1
objLinks(l).Click
Next
End If