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...

several browsers opened. write QTP script to close all browsers except gmail.

Answer Posted / puspita

Dim d
Set d=Description.Create
d("micclass").value="Browser"
Set a=Desktop.ChildObjects(d)
For i=0 to a.count-1
s=a(i).GetROProperty("title")
If instr(1,s,"Gmail")=0 Then
a(i).Close
End If
Next

Is This Answer Correct ?    22 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1908


Both static and dynamic arrays are handled by the vb script. Is it true?

1080


In qtp, how you can get the last character from a string?

1059


What are the data types in qtp?

1168


Write a script to verify font style and color of a windows object using descriptive programming

1467


Have you done batch testing in qtp? If yes how you are doing?

982


What are the features supported by UFT?

1144


Which scripting language used by quicktest professional?

1029


What are output values and why they are used ?

1122


what is vmodel?advantages and disadvantages of vmodel?

2246


Explain advantages and disadvantages of ddf?

1126


what could go wrong with test automation?

2129


HOw to add the recovery file at runtime to the test file .

2252


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

3612


When Recovery scenario actually starts while testing the application?

2097