Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to close all browsers
#2
Solved: 10 Years, 10 Months, 2 Weeks ago
Hi,

Please try this.

Code:
'until no more browsers exist
While Browser("creationtime:=0").Exist(0)
'Close the browser
Browser("creationtime:=0").Close
Wend

Thanks,
Rajeshwar
Reply


Messages In This Thread
How to close all browsers - by bangla123 - 11-09-2010, 03:48 AM
RE: How to close all browsers - by rajeshwar - 11-09-2010, 09:14 AM
RE: How to close all browsers - by bangla123 - 11-09-2010, 09:40 AM
RE: How to close all browsers - by UFTEnthusiast - 01-04-2011, 07:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Maximize and Close a Browser mv8167 4 16,161 03-26-2023, 03:55 PM
Last Post: Mike B
  Close popup ad windows dustwynn 1 2,775 10-25-2016, 05:57 PM
Last Post: Ankur
  [UFT] Close opened folder robertosalemi 1 3,181 02-10-2016, 07:06 PM
Last Post: robertosalemi
  Close browser code not working akilamurugesh 1 4,489 08-26-2014, 03:21 PM
Last Post: vinod123
  Close on Exit Issue in QTP 11.0 EGBELL 1 3,084 02-02-2014, 03:39 PM
Last Post: EGBELL

Forum Jump:


Users browsing this thread: 1 Guest(s)