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

Tuesday, February 11, 2014

How to close all the browsers and open the specific browser

How to close all the browsers and open the specific browser


Set objDesc=Description.Create
objDesc("micclass").value="Browser"
Set objColl=Desktop.ChildObjects(objDesc)
For i=0 to objColl.count-1 step 1
'objColl(i).close
'or
Browser("Creationtime:="&i).close
Next
systemutil.Run "iexplore","www.google.com"

2 comments:

Loading...