BrowserWindow.Locate Method
Finds a Web browser window by using the window title and returns a corresponding browser window object.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Shared Function Locate ( _
title As String _
) As BrowserWindow
public static BrowserWindow Locate(
string title
)
public:
static BrowserWindow^ Locate(
String^ title
)
static member Locate :
title:string -> BrowserWindow
public static function Locate(
title : String
) : BrowserWindow
Parameters
- title
Type: System.String
The title of the Web browser window to find.
Return Value
Type: Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow
The Web browser window object.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.