write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / guest
Set odesc=Description.Create
odesc("micclass").Value="Browser"
Set a=Desktop.ChildObjects(odesc)
For i = 0 To a.count-1
t=a(i).GetRoProperty("Title")
print t
If Trim(t)<>"xyz" Then
a(i).Close
End If
Next
--Ganesh
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to find array size in qtp?
How we can import data from database?
Suppose I want fail that check point? How can you do that?
How can we conduct U-I Testing by using QTP??????
How to create scenario selector
What is reusable action?
how to prepared for first for the first interview?
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
what is run-time data?
how to know no.of mails in our g mail by using vb-script
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
How do you open adobe acrobat file in QTP and do some testing on that file ?
Explain more about the Test Fusion Report of QTP?
How to use parameterization in qtp?