Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can we close all webbrowsers which are opened in out
desctop?

Answers were Sorted based on User's Feedback



How can we close all webbrowsers which are opened in out desctop?..

Answer / venu

The following code can be used in order to close all the IE
browsers:

SystemUtil.CloseProcessByName "IEXPLORE.EXE"

Is This Answer Correct ?    10 Yes 0 No

How can we close all webbrowsers which are opened in out desctop?..

Answer / meenakshisundharam

If browser(xxxx).Exist then
browser(xxxx).close
End if

Is This Answer Correct ?    9 Yes 0 No

How can we close all webbrowsers which are opened in out desctop?..

Answer / syam

While Browser("CreationTime:=0").Exist
Browser("CreationTime:=0").Close
Wend

QTP Tip1: The first browser that opens receives the
value "CreationTime" = 0, the second browser
receives "CreationTime" = 1, and so on...

Is This Answer Correct ?    4 Yes 0 No

How can we close all webbrowsers which are opened in out desctop?..

Answer / d.selvakumar

SystemUtil.CloseProcessByName "iexplore.exe"
pls use small letters

Is This Answer Correct ?    1 Yes 0 No

How can we close all webbrowsers which are opened in out desctop?..

Answer / 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

How can we close all webbrowsers which are opened in out desctop?..

Answer / ambadas

please give ans

Is This Answer Correct ?    0 Yes 0 No

How can we close all webbrowsers which are opened in out desctop?..

Answer / joseph

Tested in tool -
Answer 1 is right
Answer 3 is right
Answer 5(1) - Update (browser(index:=0).close) to browser("index:=0").close
Answer 5(2) - Need to include 'Next' for 'For' loop

Is This Answer Correct ?    0 Yes 0 No

How can we close all webbrowsers which are opened in out desctop?..

Answer / ram shankar

visit below URL, you can get qtp browsers scripts

http://www.gcreddy.com/2010/01/qtp-web-testing-scripts.html

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

what are pretesting activities

0 Answers  


Hi everybody.. I m using QTP 9.2 version., plz send me licence key is it seat or concurrent licence key... plzzzzzzzzz plz help me for this one and its Locking code:8-5C740 Maintenance number: 0123-2820602186.,

1 Answers  


What is QuickTest Automation Object Model? Where we can use AOM?

1 Answers  


for example u can take ebay or plifcart online shoping web application--------- write acode in vbscript in qtp---- search box and write (iphone6)and click on go button then opened diff prise iphones in next page but u can select 30,000 to 90,000 list pls write code? 

2 Answers   FFASVA, Genpact, Wipro,


HOW DO U CALL A ACTION IN QTP?

2 Answers   BirlaSoft,


Did you face the problem, changing the properties of an object in Run Time?

1 Answers  


Explain quicktest professional testing process?

0 Answers  


How to use the object spy in quicktest professional 8.0 version?

0 Answers  


Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks

0 Answers  


Explain measuring transaction.

0 Answers  


How to get the run time object property without using GetROProperty

4 Answers  


What r types of parametarizations?

6 Answers  


Categories