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

Can we create a qtp test from qc?

591


Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.

1613


hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)

1406


Explain the features of quick test pro(qtp)?

583


Write a QTP script to enter a keyword in to Google search engine?

655






who QTP recognizes the object stored in object repository?

1667


How the exception handling can be done using quicktest professional (qtp)?

575


What is Test Fusion Report in QTP?

625


Hi ,Can any one pleas explain how to test splash objects using QTP?

1912


Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.

1491


what is keyword driven testing in qtp?n how is it useful?

1495


I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.

1747


Explain different checkpoints in qtp.

725


what is test scheduleling?

2021


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

1720