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
Both static and dynamic arrays are handled by the vb script. Is it true?
How QTP support all types of applications (platforms)?
What are the different types of qtp test assets and their extensions?
What are the views available in quicktest professional (qtp)?
What is the differences between image check point and bit map check point?
How will internal and external links be validated and updated? how often?
If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?
give me the code to save all messages of inbox of gmail into a folder and notepad
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
What is RTM (require ment tracebulity marix) fromate?
Hi, how can we check or avoid the memory leakage in QTP9.2?
Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?
How can you close the second opened browser?
Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!
What is method name to compare two XML files.