BrowserFactory.Locate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Locate(IntPtr) |
Finds the browser that is identified by the provided window handle and returns a browser service object. |
Locate(PropertyExpressionCollection, PropertyExpressionCollection) |
Finds the browser by using the provided search properties and filter properties. |
Locate(IntPtr)
Finds the browser that is identified by the provided window handle and returns a browser service object.
public:
abstract Microsoft::VisualStudio::TestTools::UITest::Extension::BrowserService ^ Locate(IntPtr handle);
public abstract Microsoft.VisualStudio.TestTools.UITest.Extension.BrowserService Locate (IntPtr handle);
abstract member Locate : nativeint -> Microsoft.VisualStudio.TestTools.UITest.Extension.BrowserService
Public MustOverride Function Locate (handle As IntPtr) As BrowserService
Parameters
Returns
A browser service object.
Applies to
Locate(PropertyExpressionCollection, PropertyExpressionCollection)
Finds the browser by using the provided search properties and filter properties.
public:
abstract Microsoft::VisualStudio::TestTools::UITest::Extension::BrowserService ^ Locate(Microsoft::VisualStudio::TestTools::UITesting::PropertyExpressionCollection ^ searchProperties, Microsoft::VisualStudio::TestTools::UITesting::PropertyExpressionCollection ^ filterProperties);
public abstract Microsoft.VisualStudio.TestTools.UITest.Extension.BrowserService Locate (Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionCollection searchProperties, Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionCollection filterProperties);
abstract member Locate : Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionCollection * Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionCollection -> Microsoft.VisualStudio.TestTools.UITest.Extension.BrowserService
Public MustOverride Function Locate (searchProperties As PropertyExpressionCollection, filterProperties As PropertyExpressionCollection) As BrowserService
Parameters
- searchProperties
- PropertyExpressionCollection
A PropertyExpressionCollection object that contains the search properties criteria.
- filterProperties
- PropertyExpressionCollection
A PropertyExpressionCollection object that contains the filter properties.
Returns
A browser service object.