BrowserFactory Class

Provides a base class for browser factories that create BrowserService objects for specific browsers.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.UITest.Extension.BrowserFactory

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

Syntax

'Declaration
Public MustInherit Class BrowserFactory
public abstract class BrowserFactory
public ref class BrowserFactory abstract
[<AbstractClass>]
type BrowserFactory =  class end
public abstract class BrowserFactory

The BrowserFactory type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property Name Gets the name of this browser factory.
Public property SupportedVersions Gets a list of browser versions that are supported by this browser factory.
Public property TechnologyManagerTypeName Gets the type name for the user interface technology manager to use for this browser factory.

Top

Methods

  Name Description
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 GetBrowserHelper Returns a browser helper for the browsers that this factory supports.
Public method GetBrowserSupportLevel Returns the numerical support level for the specified browser.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Launch() Launches the browser and returns a browser service object.
Public method Launch(array<String[]) Launches the browser by using the provided arguments and returns a browser service object.
Public method Launch(Uri) Launches the browser by using the provided uniform resource identifier (URI) and returns a browser service object.
Public method Locate(IntPtr) Finds the browser that is identified by the provided window handle and returns a browser service object.
Public method Locate(PropertyExpressionCollection, PropertyExpressionCollection) Finds the browser by using the provided search properties and filter properties.
Public method LocateAll Finds all browsers that match the provided search properties and filter properties, and returns an array of browser service objects for those browsers.
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.)

Top

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

Reference

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

BrowserService