Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.