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

How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)

1 Answers   Google, IBM,


what is fire event method in qtp?

3 Answers   TCS,


how to check whether link is disabled in QTP??

0 Answers  


HOW TO OPEN NEW TAB USING VB SCRIPT IN QTP?

1 Answers   TCS,


i have to open a notepad having no. of words in dat file by recording in qtp and then find a particular word and display true or false

0 Answers  


How to open excel in vb script?

0 Answers  


write a vb script to display ***** ***** ***** ***** *****

4 Answers  


How will you convert a string to upper case string using vbscript?

0 Answers  


Can automation testing find ssame no. of bugs what we can find by manual testing?

0 Answers  


1. How do declare public variable in vb scripts?

0 Answers  


Why is the use of exit do or exit for statements within loops discouraged?

0 Answers  


i created script for login in QTP,i parametirized that using global sheet,problem i am facing is first i want to login with first values provided in excelsheet and want to perform some operation,second time if call same action it should login with second values in excelsheet

2 Answers   TCS,


Categories