Editorial / Best Answer
calvin_29
This is the script, We should first create an object
set oDesc=description.create()
'prefer descriptive programming...batter
oDesec("micclass").value="link"
'get all child objects in an variable
set oLink=browser("name:=.*").page("title:=.*").childobjects(oDesc)
'count all links
intC=oLink.count
'Use print or msgbox or 'reporter.reportevent'
print intC
'it glows links in the web page
for i=0 to intC-1
oLink(i).highlight
next
set oLink=nothing
set oDesc= nothing
'Offer me comment if it works properly
Count Number of Links
Profile Answers by shruthi.b Questions by shruthi.b
Questions by shruthi.b
Editorial / Best Answer
calvin_29Profile Answers by calvin_29 Questions by calvin_29
This is the script, We should first create an object
set oDesc=description.create()
'prefer descriptive programming...batter
oDesec("micclass").value="link"
'get all child objects in an variable
set oLink=browser("name:=.*").page("title:=.*").childobjects(oDesc)
'count all links
intC=oLink.count
'Use print or msgbox or 'reporter.reportevent'
print intC
'it glows links in the web page
for i=0 to intC-1
oLink(i).highlight
next
set oLink=nothing
set oDesc= nothing
'Offer me comment if it works properly
Related Answered Questions
Related Open Questions