Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BrowserService Class

 

Provides methods and properties for automating browser.

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

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

public abstract class BrowserService : IDisposable

NameDescription
System_CAPS_protmethodBrowserService()

Initializes a new instance of the BrowserService class.

NameDescription
System_CAPS_pubpropertyDocumentWindow

Gets the document window of the browser.

System_CAPS_pubpropertyTopLevelWindow

Gets the top-level window of the browser.

System_CAPS_pubpropertyUri

Gets the uniform resource identifier (URI) for the page that is loaded in the browser.

System_CAPS_pubpropertyVersion

Gets the version of the browser.

NameDescription
System_CAPS_pubmethodBack()

Navigates to the previous item in the history list.

System_CAPS_pubmethodClose()

Closes the browser.

System_CAPS_pubmethodDispose()

Releases all resources that are used by the BrowserService.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExecuteScript(String, Object[])

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodForward()

Navigates the next page in the history list.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodNavigateToHomepage()

Navigates the browser to its registered home page.

System_CAPS_pubmethodNavigateToUrl(Uri)

Navigates the browser to the specified URI.

System_CAPS_pubmethodPerformDialogAction(BrowserDialogAction, Object)

Executes the provided browser dialog action in the browser by using the provided parameter value.

System_CAPS_pubmethodRefresh()

Reloads the current page in the browser.

System_CAPS_pubmethodStopPageLoad()

Stops loading the current page into the browser.

System_CAPS_pubmethodToString()

(Inherited from Object.)

No content here will be updated; please do not add material here.

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

Return to top
Show: