write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / manjunathareddy
Dim iIndex
iIndex=0
While Browser("CreationTime:="&iIndex).Exist(1)
Title=Browser("CreationTime:="&iIndex).GetRoProperty("title")
If InStr(Title,"xyz")=0 Then
Browser("CreationTime:="&iIndex).Close
If iIndex<>0 Then
iIndex=iIndex - 1
End If
Else
iIndex=iIndex+1
End If
Wend
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
hi nani my doubt is how does qtp process metrix related to software process.
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
what is the difference between development and testing
Where you get the run time data table?
Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link
Is qtp supports uni-code?
Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com
How to test fly out menu in qtp?
What are the types of data tables in qtp?
Have you used xml check point in your project? How?
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.
how will load the object during runtime?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.