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

BrowserHelper Class

Provides a base class for browser helper methods.


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

type BrowserHelper =  class end

The BrowserHelper type exposes the following members.

Protected methodBrowserHelperInitializes a new instance of the BrowserHelper class.

Public propertyAllowPopupsGets or sets a value that indicates whether the browser is to enable pop-up windows.
Public propertyHomepageGets the uniform resource identifier (URI) for the home page of the browser.

Public methodClearCacheClears the cache of the browser.
Public methodClearCookiesClears the cookies of the browser.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
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 methodGetBrowserButtonTypeReturns the button type for the provided user interface technology element.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetPageTitleReturns the page title for the given window title.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetUrlFromBrowserDocumentWindowReturns the URI for the current page in the browser document window.
Public methodIsBrowserDocumentWindow(IntPtr)Determines whether the provided window handle refers to the browser document window.
Public methodIsBrowserDocumentWindow(UITechnologyElement)Determines whether the provided element is the browser document window.
Public methodIsBrowserProcessDetermines whether the provided process is an instance of the browser.
Public methodIsBrowserWindow(String)Determines whether the specified class represents a Web browser window.
Public methodIsBrowserWindow(UITechnologyElement)Determines whether the provided element is a browser window.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
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.