in QuickTest Professional (QTP) by
How do know the number of browsers opened?

▼ Show 1 Answer

0 votes

To do this you will have to check how many child objects of the type ‘browser' are present on the desktop. The following is the code that explains it:

Set ObjectBrowser = Description.Create
ObjectBrowser(“micclass”).Value = “Browser”
Set BObj = Desktop.ChildObjects(ObjectBrowser)
Msgbox Obj.Count

Learn More with Madanswer