How can we close all webbrowsers which are opened in out
desctop?
Answer Posted / chandrashekar reddy
there are 2 ways to close the all browsers in qtp
1) we can use while..... wend 2) we can use
description.create method
1) while Browser("index:=0").exist (1)
browser(index:=0).close
wend
2) set ab=description.create
ab("micclass").value="Browser"
set obj=Desktop.childobjects(ab)
b=obj.count
msgbox b
for i= 0 to b-1
names=obj(i).getroproperty("name")
msgbox name
obj(i).close
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain about datafile/verification of date file when file is not available in local system?
What are the different attributes used with regular expression?
What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?
How to handle dynamic objects in quicktest professional (qtp)?
What is a recovery scenario?
What is the syntax for how to call one script from another?
Describe function procedure in vbscript.
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?
suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?
Can any one send me the QTP Basic Coding Samples?
Explain different type of event trigger option.
How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
How software automation specialist enter steps in the Expert View?
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.