The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public static string CurrentBrowser { get; set; }

Property Value

Type: System.String

The current browser window.

Exception Condition

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

Return to top