Share via


BrowserWindow.CurrentBrowser Property

Gets or sets the current browser from the list of registered browsers.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Shared Property CurrentBrowser As String
public static string CurrentBrowser { get; set; }
public:
static property String^ CurrentBrowser {
    String^ get ();
    void set (String^ value);
}
static member CurrentBrowser : string with get, set
static function get CurrentBrowser () : String
static function set CurrentBrowser (value : String)

Property Value

Type: System.String
The current browser window.

Exceptions

Exception Condition
[ArgumentException]

An attempt was made to set a browser that is not in the list of registered browsers.

.NET Framework Security

See Also

Reference

BrowserWindow Class

Microsoft.VisualStudio.TestTools.UITesting Namespace