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

1 Answer

0 votes
by

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

Related questions

0 votes
asked Jun 12, 2020 in Python by Robindeniel
  • #python-keywords
  • #keywords-python
0 votes
asked Jan 31, 2020 in Selenium by SakshiSharma
0 votes
asked Apr 25, 2020 in QuickTest Professional (QTP) by Robindeniel
...