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

public static string CurrentBrowser { get; set; }

Property Value

Type: 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