using descriptive programming how to close all opend browsers?

Answers were Sorted based on User's Feedback



using descriptive programming how to close all opend browsers?..

Answer / ravi

Set b=Description.Create
b("micclass").value="Browser"
Set obj=Desktop.ChildObjects(b)
For i=0 to obj.count-1
c=obj(i).GetROProperty("title")
msgbox " Closing.. " & c
obj(i).Close
Next

Is This Answer Correct ?    5 Yes 0 No

using descriptive programming how to close all opend browsers?..

Answer / amarendra kothuru

Do While(True)
If Not Browser("index:=0").Exist(0) Then
Exit Do
End If
Browser("index:=0").Close
Loop

Is This Answer Correct ?    3 Yes 0 No

using descriptive programming how to close all opend browsers?..

Answer / sagar jadhav

Guys instead of doing all the circus mentioned in all above
answers... below statement will close all IE brosers in one
go......

SystemUtil.CloseProcessByName "iexplore.exe"

That's it!

Is This Answer Correct ?    1 Yes 0 No

using descriptive programming how to close all opend browsers?..

Answer / balaji

Hi you can use thise code

For i= 0 to 5
browser("name:=Google").Close


Next

Is This Answer Correct ?    0 Yes 0 No

using descriptive programming how to close all opend browsers?..

Answer / naveen

while Browser("Creation Time:=0").Exist
Browser("Creation Time:=0").Close
Wend

Is This Answer Correct ?    1 Yes 1 No

using descriptive programming how to close all opend browsers?..

Answer / moin

Public function closeBrowser()
On error resume next
Ipval=Environment("Ipval")
err.clear
Browser(Ipval).Close
If err.description<>"" Then
Reporter.ReportEvent micFail,"Wait",err.description
End If
End Function

Is This Answer Correct ?    0 Yes 1 No

using descriptive programming how to close all opend browsers?..

Answer / shobha

asdfdsfdf

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More QTP Interview Questions

Explain different types of action in qtp?

0 Answers  


Tell me Three major differences between QTP & Winrunner?

2 Answers  


hi all need one help . i want scroll down and up but thing the holl page is taking webtable. i need to scroll down and up using scroll tab any bodu knows plz help its urjent regards balaji

5 Answers  


Where is the Bitmap checkpoint information stored?

0 Answers   Ordain Solutions,


where we save the scripts created in one project?

6 Answers   IBM,






what is meant by "Parameterization technique"?

4 Answers   KH, Mind Tree,


how to find that tools work well with ur existing system?

0 Answers  


Explain about reusable actions?

2 Answers  


what is virtual object?

2 Answers  


How to find the difference between 2 dates in qtp?

0 Answers  


What is the difference between QTP 8.2 and QTP 9.2 ?

4 Answers   IBM, Infotech,


hello all i need some good sites or blogs which give info abt vb script with examples n real time scenarios.just like tutorials as i m new to qtp n vbscripting. its urgenttt

2 Answers  


Categories