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 |
give me any information abou vb script books learn quckly
What are the disadvantages of vbscript?
What purpose does ‘on error resume next’ serves?
What is string concatenation function in VBScript?
Explain about tristate constants in vbscript?
Which in-built function is used to format the number in the vbscript language?
HOW TO OPEN NEW TAB USING VB SCRIPT IN QTP?
i want to when we will write the scripts either after getting the build or after getting the SRS?
What is the use of the formatdatetime function in the vbscript language?
How to search word in a string without using instring function?
I want to import the sheet from the Excel to the Datatable using VB Script. I used the Syntax as 'Datatable.ImportSheet "Filename","SourceSheet","Destinat ionSheet" Ex: Datatable.ImportSheet "D:\Data1.xls","Sheet1","Global" Qtp producing run time error,How I can solve the problem
How to write functional test cases for send button in gmail.