Public Function func_closeBrowsers()
Dim oBrowser 'to store browser object description
'Create description object
Set strOpenBrowser = Description.Create
strOpenBrowser("creationtime").Value = 0
'close all open browsers
While Browser(strOpenBrowser).Exist(0)
Browser(strOpenBrowser).Close
Wend
'verify whether all the opened browsers are closed or not.
If Browser(strOpenBrowser).Exist(0) = False Then
func_closeBrowsers = True
sub_reportSuccess "Close Browser", "All browsers are closed successfully"
Else
func_closeBrowsers = False
End If
End Function 'End of 'closeBrowsers' function.
Monday, May 20, 2013
Close all browsers using QTP
AI in Software Testing: How Artificial Intelligence Is Transforming QA
For years, software testing has lived under pressure: more features, faster releases, fewer bugs, smaller teams. Traditional QA has done her...
-
Test-Driven Development (TDD) is a software development approach that emphasizes writing automated tests before writing the code. The appr...
-
Agile software development is a highly iterative and collaborative approach to software development that emphasizes flexibility and a...
-
Software development is a complex process that requires a high degree of accuracy, efficiency, and speed. One way to achieve these goals i...