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

What is select case statement?

1 Answers  


How can the spaces from the string be removed?

1 Answers  


wht must be the interview question on corinthian information technology solutions incorporated.

1 Answers   HP,


What are the 2 ways in which a variable can be declared in the vbscript language?

1 Answers  


Which date function is used in the vbscript language to find the difference between the 2 dates?

1 Answers  


How to Convert Hex color code to color name in VB Script?

1 Answers  


Why to use option explicit in vb script?

1 Answers  


after medical test,when will be the police verification

1 Answers   IBM,


Can anyone help me in write coding to get this pattern * ** *** ****

3 Answers  


I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..

1 Answers  


Hi all..I have two values. a=20 ,b=30 I want to perform c= a+b and c= a*b using user define function.please anyone give the answer

1 Answers  


Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder

1 Answers   IBM,


Categories