We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

BrowserFactory.Locate Method (PropertyExpressionCollection, PropertyExpressionCollection)

Finds the browser by using the provided search properties and filter properties.

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

public abstract BrowserService Locate(
	PropertyExpressionCollection searchProperties,
	PropertyExpressionCollection filterProperties
)

Parameters

searchProperties
Type: Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionCollection
A PropertyExpressionCollection object that contains the search properties criteria.
filterProperties
Type: Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionCollection
A PropertyExpressionCollection object that contains the filter properties.

Return Value

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

Show: