before launching qtp, we need to close all the open browsers
u dont know what are all the browsers either it might be
ie,mozilla etc and u dont know how many brosers are open....
u need to close all these before launching qtp.. can anyone
plz temme d solution...
Answer Posted / debee prasad kar
dim d,a
set d=description .create
d("micClass").value="Browser"
'get the list of browser
set a =Desktop.childobjects(d)
for i=0 to a.count-1
a(i).close
next
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
What is the qtp testing process?
How to release all resources file from the QTP?
Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?
What is contained in the object repository?
What is the difference between byref and byval in qtp?
Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.
HOw to add the recovery file at runtime to the test file .
How to capture a window in QTP?
How does qtp recognize objects in aut?
explain how to write vb script in qtp?when will you write own script?
distinguish between old version and new version QTP features.
How do know the number of browsers opened?
who QTP recognizes the object stored in object repository?
Give the syntax to import/export xls into qtp.
Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints