Get Browser Title in QTP

Here is a small function that can be used to get Browser Title.

Function GetBrowserTitle()
set sbrowser=Description.create()
' we are creating a blank object named as sbrowser.
' we are assigning the sbrowser object as "Browser
set obj=Desktop.childObjects(sbrowser)
if(icount<>0) then
end if
Set sbrowser=Nothing
set obj=Nothing
End Function

Get Browser Title in QTP Get Browser Title in QTP Reviewed by Animesh Chatterjee on February 24, 2010 Rating: 5

No comments:

Powered by Blogger.