Share via


BrowserFactory.Locate Method (IntPtr)

Finds the browser that is identified by the provided window handle and returns a browser service object.

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

Syntax

'Declaration
Public MustOverride Function Locate ( _
    handle As IntPtr _
) As BrowserService
public abstract BrowserService Locate(
    IntPtr handle
)
public:
virtual BrowserService^ Locate(
    IntPtr handle
) abstract
abstract Locate : 
        handle:IntPtr -> BrowserService
public abstract function Locate(
    handle : IntPtr
) : BrowserService

Parameters

  • handle
    Type: IntPtr

    An IntPtr that identifies a browser window.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension.BrowserService
A browser service object.

.NET Framework Security

See Also

Reference

BrowserFactory Class

Locate Overload

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

BrowserService