QTP Count the Number of Open Browser Sessions
' Create a Description Object
Dim iDesc
Set iDesc = Description.Create
' Assign the micclass Property
iDesc("micclass").value="browser"
'Get the child objects using getChildObjects
Set iObj = Desktop.ChildObjects(iDesc)
'Displays the count
MsgBox iObj.Count
0 comments:
Post a Comment