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

Please Don't mind .i want in detail the real time process i.e in each document what it contains.

1677


1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?

1714


What are main panes available in qtp test browser?

731


when will you do debug your script? and explain that process?

1676


Explain building blocks of the bpt framework ?

791


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

4073


What are the ordinal identifiers in web page?

859


To which environments does quicktest professional supports?

763


I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)

1674


what QTP Options do you know?

3159


What is quick test pro? What is a quick test professional?

796


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

3464


Name the different types of recording modes?

794


terminal services client

2027


How to write business scripts using object repository with different scenarios

1628