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 / kaps

'Check if this is working
Dim TrueOrFalse

Do while("True")
  TrueOrFalse = Browser("index:=0").Exist(2)
  if(TrueOrFalse = "False") then  
   exit do
  else
   Browser("index:=0").close    
  end if
Loop

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...

1474


Explain how Does Run time data (Parameterization) is handled in QTP?

550


Can we create a qtp test from qc?

581


Can you list some technologies that support qtp?

542


Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

1405






Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?

611


How to create runtime property for an object?

1440


Can any body please tell me the steps of keyword driven framework of QTP.

1559


What is the basic concept of quicktest professional?

524


What are the check points can be inserted without recording?

592


What is parameter in qtp?

674


Explain advantages and disadvantages of ddf?

592


What is checkpoints for qtp?

522


How to creating an output value using quicktest professional?

534


Which environments are supported by hp qtp?

593