BrowserService Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public MustInherit Class BrowserService _
    Implements IDisposable
public abstract class BrowserService : IDisposable
public ref class BrowserService abstract : IDisposable
[<AbstractClass>]
type BrowserService =  
    class
        interface IDisposable
    end
public abstract class BrowserService implements IDisposable

The BrowserService type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property DocumentWindow Gets the document window of the browser.
Public property TopLevelWindow Gets the top-level window of the browser.
Public property Uri Gets the uniform resource identifier (URI) for the page that is loaded in the browser.
Public property Version Gets the version of the browser.

Top

Methods

  Name Description
Public method Back Navigates to the previous item in the history list.
Public method Close Closes the browser.
Public method Dispose Releases all resources that are used by the BrowserService.
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 Forward Navigates the next page in the history list.
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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method NavigateToHomepage Navigates the browser to its registered home page.
Public method NavigateToUrl Navigates the browser to the specified URI.
Public method PerformDialogAction Executes the provided browser dialog action in the browser by using the provided parameter value.
Public method Refresh Reloads the current page in the browser.
Public method StopPageLoad Stops loading the current page into the browser.
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

BrowserFactory

BrowserHelper