write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / gangadhar
set objbrowser=Description.Create
objbrowser("micclass").value="Browser"
set a=Desktop.ChildObjects(objbrowser)
msgbox a.count
for i=o to a.count-1
s=a(i).GetRoProperty("Title")
If instr(s,"Gmail")=0 Then
a(i).close
End If
Next
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
In qtp, explain what is qrs file?
can any body give the banking domain concepts/links
How do you test DLL files using automation Tool QTP?
We stored into the objects OR and then write the scripting
What environment does qtp run in?
What phases are involved in testing an application in qtp?
How to capture all the data of a webtable, weblist and combolist using QTP?
I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You
we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career
Explain how you can find the absolute value of the number in qtp?
What are the features of quick test pro(qtp)?
How to use conditional loops in qtp ?
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.