Write a Fucntion to close all Opened browser expect desired
one?
Answers were Sorted based on User's Feedback
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 |
What is select case statement?
How can the spaces from the string be removed?
wht must be the interview question on corinthian information technology solutions incorporated.
What are the 2 ways in which a variable can be declared in the vbscript language?
Which date function is used in the vbscript language to find the difference between the 2 dates?
How to Convert Hex color code to color name in VB Script?
Why to use option explicit in vb script?
after medical test,when will be the police verification
Can anyone help me in write coding to get this pattern * ** *** ****
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..
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
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