06-11-2015, 06:23 PM
Step 1:
Create description of the links
Step 2:
Identify all the links in the page.
Step 3:
Keep for loop and inside the the for loop keep if cond and check whether the link exists. if exists click and write exit for. else fail.
snippet:
///Hope this works
Happy scripting
Create description of the links
Step 2:
Identify all the links in the page.
Step 3:
Keep for loop and inside the the for loop keep if cond and check whether the link exists. if exists click and write exit for. else fail.
snippet:
Code:
dim objlink
set objlink = description.create
objlink("micclass").value = "Link"
set objlinkcoll = Browser("Name:=.*").page("Title:=.*).childobjects(objlink)
'Msgbox objlinkcoll.count
for i=0 to objlinkcoll.count
'check ur link exists in loop
if (trim("abc") = objlinkcoll(i) then
objlinkcoll(i).click
exit for
else
print "fail"
Next
Happy scripting