Descriptive Programming To Count No. Of Links In A Webpage

SystemUtil.Run "www.funandknowledge.blogspot.com"
Set aa=description.Create
aa("htmltag").value="A"

set bb=Browser("name:=Fun.*").Page("title:=Fun.*").childobjects(aa)
cc=bb.count

msgbox cc

QTP Faqs
Manual Faqs
Testing Faqs Resources
Descriptive Programming for Yahoo Login Page
D.P for getting checkbox checked status

2 comments:

Anonymous said...

I tried this code.QTP is giving error message "General run error" at the step --> Set bb=Browser("Name:=Fun.*").Page("Title:=Fun.*").ChildObjects(aa)

pls help me out.

F n K said...

Check once again.copy this script n run it once or twice u vl get n thn try to write your own.

try this one also

SystemUtil.Run "www.yahoo.com"
Set aa=description.Create
aa("htmltag").value="A"

set bb=Browser("name:=yahoo.*").Page("title:=yahoo.*").childobjects(aa)
cc=bb.count

msgbox cc

Related Posts Plugin for WordPress, Blogger...