BrowserHelper Class

Provides a base class for browser helper methods.

Inheritance Hierarchy


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


Public MustInherit Class BrowserHelper
public abstract class BrowserHelper
public ref class BrowserHelper abstract
type BrowserHelper =  class end
public abstract class BrowserHelper

The BrowserHelper type exposes the following members.


  Name Description
Protected method BrowserHelper Initializes a new instance of the BrowserHelper class.



  Name Description
Public property AllowPopups Gets or sets a value that indicates whether the browser is to enable pop-up windows.
Public property Homepage Gets the uniform resource identifier (URI) for the home page of the browser.



  Name Description
Public method ClearCache Clears the cache of the browser.
Public method ClearCookies Clears the cookies of the browser.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetBrowserButtonType Returns the button type for the provided user interface technology element.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetPageTitle Returns the page title for the given window title.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetUrlFromBrowserDocumentWindow Returns the URI for the current page in the browser document window.
Public method IsBrowserDocumentWindow(IntPtr) Determines whether the provided window handle refers to the browser document window.
Public method IsBrowserDocumentWindow(UITechnologyElement) Determines whether the provided element is the browser document window.
Public method IsBrowserProcess Determines whether the provided process is an instance of the browser.
Public method IsBrowserWindow(String) Determines whether the specified class represents a Web browser window.
Public method IsBrowserWindow(UITechnologyElement) Determines whether the provided element is a browser window.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)


Thread Safety

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

See Also


Microsoft.VisualStudio.TestTools.UITest.Extension Namespace