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 |
Which event is triggered when mouse focus comes out of an element in the vbscript language?
Explain a few date functions in vbscript
Write VB script to convert from feet to inches(hint 1feet=12 inches)
Explain the asc function?
Give examples where vb script can directly run on users system with windows as os?
The function template cocept is implemented in vb.net is ???
What is Querystring collection?
Why is it recommended to close the database connection every time after the work is completed?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
0 Answers College School Exams Tests,
if there is any string in a given format like as "company name employeecode date" then we have to fetch employeecode form string for ex-string is "capgemini12345june2013" then we have to fetch 12345 by using vb script so guys how can we do that please reply it.
Explain about filter expression?
how to retrive the tooltip by using descriptive programming in qtp?