How can we close all webbrowsers which are opened in out
desctop?

Answer Posted / chandrashekar reddy

there are 2 ways to close the all browsers in qtp
1) we can use while..... wend 2) we can use
description.create method

1) while Browser("index:=0").exist (1)
browser(index:=0).close
wend

2) set ab=description.create
ab("micclass").value="Browser"
set obj=Desktop.childobjects(ab)
b=obj.count
msgbox b
for i= 0 to b-1
names=obj(i).getroproperty("name")
msgbox name
obj(i).close

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can get count of list box?

741


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

723


Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain

1558


How to carry out bit map check points in QTP

1843


Can U Explain about QTP tool from older version to latest version also its differences?

1617






Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

2312


How do you delete unwanted results in qtp?

710


When should I use smart identification?

680


What is the purpose of loading qtp add-ins?

711


what is the difference between development and testing

2574


What is qtpro?

696


How does qtp recognize objects in aut?

680


how to idetfy which test cases are automated?who will deside that plz tell me

1632


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4297


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

1497