write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / manjunathareddy
Dim iIndex
iIndex=0
While Browser("CreationTime:="&iIndex).Exist(1)
Title=Browser("CreationTime:="&iIndex).GetRoProperty("title")
If InStr(Title,"xyz")=0 Then
Browser("CreationTime:="&iIndex).Close
If iIndex<>0 Then
iIndex=iIndex - 1
End If
Else
iIndex=iIndex+1
End If
Wend
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
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.
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",
how will you load the test cases in ddt?
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
What are the various types of Actions in UFT?
I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...
what is object and child object.. explain ..if possible give some example for better understanding ..
what is the difference between development and testing
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
How to connect the remote desktop using QTP 9.2 explain the method or procedure?
What is a quick test professional?
Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?
Hi All, How to Compare two strings character by character in QTP
Explain the Different types of QTP test assets and their extensions?