If there are some browsers opened and I don't how many browsers are open, Now I want to close all the browsers that I don't know how many are opened.
What would be Descriptive programming for this in QTP using VB Script..???
Please send your answers.

Answer Posted / m.ganesh

Set odesc=description.Create
odesc("micclass").value="Browser"
Set a=Desktop.ChildObjects(odesc)
print a.count
For i = 0 To a.count-1
browsername= a(i).getroproperty("name")
print browsername
Next

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the quicktest professional testing process?

519


What is RTM (require ment tracebulity marix) fromate?

1515


Explain about the quicktest professional (qtp) automation object model?

554


Suppose I want fail that check point? How can you do that?

592


what is the mail use of frame work(with detail). architecture for keyword driven frame work

1407






Can we write winrunner language i.e TSL in QTP tool?

1464


What is the standard timing delay for web based application in qtp?

581


Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance

1394


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

1580


What is business process testing(bpt) in qtp?

680


distinguish between old version and new version QTP features.

1853


How is UFT 11.5 version different from UFT 12.0?

598


How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.

1779


How to test the login page in different ways in automation testing and i need code?

1335


Please guide me release notes of Automation once scripts are completed

1450