Suppose there are 10 browsers opened on desktop. I want to
close all browsers except one browser in QTP. Can any one
give the code for this?

Answer Posted / shankar

set brow=description.create
brow("micclass").value="browser"
set brows=Desctop.childobjects(brow)
for i=0 to brows.counts-1
browser(brow).close

please reffer this and if it is wrong give me clarification.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does qtp identify gui object?

588


Explain quicktest professional testing process?

564


how many maximum number of virtual users we can create?

1572


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

585


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

706






Differences between text and test area checkpoints?

586


What is the new version of qtp which is recently released in the market?

644


Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

1750


can any body give the banking domain concepts/links

3635


How to open a new test using quicktest professional (qtp)?

535


i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

1763


how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

1829


What are the different types of functions available in qtp and explain ?

573


What is QTP testing process?

631


How can you write the scripts that operate on different objects depending on run-time information?

2122