using descriptive programming how to close all opend browsers?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)

1783


I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.

2711


Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com

1601


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

844


What is the use of an object spy tool in qtp?

791


How does qtp identify gui object?

798


How to Test the mainframe application?

2097


what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?

1701


Explain process of smart Identification in QTP?

818


1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)

1989


What phases are involved in testing an application in qtp?

778


How does qtp recognize objects in aut?

809


What is Port testing. Whhen will you perform?

1739


Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in

1815


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

853