Jan 14 in QuickTest Professional (QTP)
Q: How do know the number of browsers opened?

1 Answer

Jan 14

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

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

Jan 31 in Selenium
Jul 28, 2019 in R Language
Dec 23, 2019 in Agile