We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

BrowserService Class

Provides methods and properties to automate the browser Microsoft Test Manager.


Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

public abstract class BrowserService : IDisposable

The BrowserService type exposes the following members.

Protected methodBrowserServiceInitializes a new instance of the BrowserService class.

Public propertyDocumentWindowGets the document window of the browser.
Public propertyTopLevelWindowGets the top-level window of the browser.
Public propertyUriGets the uniform resource identifier (URI) for the page that is loaded in the browser.
Public propertyVersionGets the version of the browser.

Public methodBackNavigates to the previous item in the history list.
Public methodCloseCloses the browser.
Public methodDisposeReleases all resources that are used by the BrowserService.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodExecuteScript
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodForwardNavigates the next page in the history list.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodNavigateToHomepageNavigates the browser to its registered home page.
Public methodNavigateToUrlNavigates the browser to the specified URI.
Public methodPerformDialogActionExecutes the provided browser dialog action in the browser by using the provided parameter value.
Public methodRefreshReloads the current page in the browser.
Public methodStopPageLoadStops loading the current page into the browser.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.