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


Write a Fucntion to close all Opened browser expect desired
one?

Answers were Sorted based on User's Feedback



Write a Fucntion to close all Opened browser expect desired one?..

Answer / sojan davis

Function WebLogOff()

Dim oDesc, x
'Create a description object
Set oDesc = Description.Create
oDesc( "micclass" ).Value = "Browser"
'Close all browsers except ""
If Desktop.ChildObjects(oDesc).Count > 0 Then
For x = Desktop.ChildObjects(oDesc).Count - 1 To 0
Step -1
If InStr(1, Browser("creationtime:="&
x).GetROProperty("name"), "NAME OF PAGE") = 0 Then
Browser( "creationtime:=" & x ).Close

End If
Next
End If

End Function

Is This Answer Correct ?    3 Yes 0 No

Write a Fucntion to close all Opened browser expect desired one?..

Answer / sha

Thanks sojan

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

I want good books or good sites for scripting.Can any one help me.

0 Answers   Wipro,


How to learn VB Script, Since iam working with QTP. So i need to learn VB script.

4 Answers   TCS,


What is variant in vb script?

0 Answers  


I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?

0 Answers  


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

0 Answers  


What is byref and byval parameters in vbscript?

0 Answers  


In what way program "hello world" you can write in vbscript?

0 Answers  


what is diff between static and dynaic arrys?

0 Answers  


i want to when we will write the scripts either after getting the build or after getting the SRS?

3 Answers  


Explain the scope of the variables using dim, public, and private keywords respectively.

0 Answers  


What is the difference between vbscript and vba?

0 Answers  


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

0 Answers  


Categories