Suppose there are 10 browsers opened on desktop. I want to
close all browsers except one browser in QTP. Can any one
give the code for this?
Answer Posted / vijay
While Browser("creationtime=0").exist(0)
Browser("creationtime=0").close
wend
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)
How does you pass optional arguments in qtp?
what r the main attributes of test automation?
What is reusable action?
what is the difference between modular framework & datadriven framework
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com
By using QTP can we record any log files written by the application which is in execution?
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
What are the Test design techniques you uses in ur project?
desribe a situation where u faced a stressful situation and how did u cope with it
What is the use of an object spy tool in qtp?
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
Explain Descriptive Programming Types with Examples?
How will you declare a variable in qtp?
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me