using descriptive programming how to close all opend browsers?

Answer Posted / amarendra kothuru

Do While(True)
If Not Browser("index:=0").Exist(0) Then
Exit Do
End If
Browser("index:=0").Close
Loop

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

2023


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

1751


How you are developing the script? Using record and play back or manual?

702


What is RTM (require ment tracebulity marix) fromate?

1612


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

1505






How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one

1709


How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric

1740


What are the different types of recording modes?

614


can the activities of test case design be automated?

1545


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

657


what is meant by source control?

1794


what is run-time data?

1797


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

1616


How to find the difference between 2 dates in qtp?

682


How to integrate the qualitycenter with qtp

1861