Wednesday, 16 September 2015

HOW TO COUNT TOTAL NUMBER OF LINKS ON A WEB PAGE IN QTP



Steps:
Create object using description object
Assign link to object using value method
Retrive the collection of all objects & assign to variable
Using msgbox function dispay the data present in variable

Ans:
Code:
Set Des_Obj = Description.Create
Des_Obj("micclass").Value = "Link"
Set link_col = Browser("name:=Google").Page("title:=Google").ChildObjects(Des_Obj)
msgbox link_col.count


SUBSCRIBE YOUTUBE CHANNEL FOR LATEST VIDEOS
 https://www.youtube.com/channel/UC1EmncBu2maDiHNMNNqxw9g

No comments:

Post a Comment