write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / pravati
set obj=Description.create()
obj("micclass").value="Browser"
set brsrobj=Desktop.childobjects(obj)
msgbox brsrobj.count
for i=0 to brsrobj.count -1
x=Browser("micclass:=Browser","creationTime:=&i-1").Getroproperty("name")
if instr(x,"xyz')=0 Then
Browser("micclass:=Browser","creationTime:=&i-1").close
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is recovery scenario in qtp?
How can I use Call dlls in QTP ?
how many maximum number of virtual users we can create?
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
How to execute a winrunner script in quicktest professional?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
Can you brief the hurdles you faced during Automation testing?
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
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
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance
Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation
How to create Reusable and Multiple Actions?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
In qtp is it possible to check broken links of a page?
Discuss the QTP Environment?