write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / lak
dim oBrowser,oAllBrowser,nProcessId,nCounter
set oBrowser = Description.Create
oBrowser("micclass").vlaue="Browser"
set oAllBrowser = Desktop.childObjects(oBrowser)
for nCounter=0 to oAllBrowser.count-1
if(instr(oAllBrowser(nCounter).getRoProperty
("title"),"xyz"))<=0 then
nProcessId = oAllBrowser(nCounter).getRoProperty("process
id")
Systemutil.closeProcessById nProcessId
End if
else
oAllBrowser(nCounter).close
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer
How to creating an output value using quicktest professional?
Is the qtp course will help to create a virtual object?
How to export quicktest professional (qtp) results to an .xls file?
What are the main differences of qtp and win runner?
what is error and fault in terms of software quality?
How to start recording using quicktest professional (qtp)?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
How to add verification steps to tests?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
can any one say that where we can download the QTP trail version ??????????
How did you use regular expressions in QTP and also in WR?
How to find the length of the string in qtp?