Jan 14, 2020 in QuickTest Professional (QTP)
Q: How can you close the second opened browser?

1 Answer

0 votes
Jan 14, 2020

You can know which browser instance was opened after another can be known by using the “creation time” property. In simple terms, this is nothing but a counter for each browser instance that gets launched. For the first one, it is 0 and gets incremented from then on. To close the second opened browser, you can use the following code:

Browser(“creationtime:=1”).Close

Related questions

0 votes
Jan 30, 2020 in Selenium
  • #selenium
+1 vote
Apr 12, 2020 in QuickTest Professional (QTP)
0 votes
Oct 20, 2019 in Dataware house
...