Automation Testing, Manual Testing, QTP/UFT 11 , QC/ALM 11 ,SAP TAO, Unix, Selenium, Oracle SQL, Shell Scripting and For Online Trinings to contact me : Cell:+91-8897972059 , Email Id : quicktestprotech@gmail.com
Showing posts with label How to close all the browsers. Show all posts
Showing posts with label How to close all the browsers. Show all posts

Tuesday, February 11, 2014

How to close all the browsers

      How to close all the browsers


Set objDesc=Description.Create
objDesc.Add "micclass","Browser"
set objColl=Desktop.ChildObjects(objDesc)
msgbox objColl.count
For i=0 to objColl.count-1 step 1
strBrname=objColl(i).GetRoproperty("name") ' to get the browser name
msgbox strBrname
objColl(i).close ' to close the browser
Next  

Loading...