Share via


ApplicationUnderTest.Find Method

Finds this application window in the user interface.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Overrides Sub Find
public override void Find()
public:
virtual void Find() override
abstract Find : unit -> unit  
override Find : unit -> unit
public override function Find()

Exceptions

Exception Condition
UITestControlNotAvailableException

If the control is not available or valid

UITestControlNotFoundException

If the control is not found with the given search properties

UITestControlNotAvailableException

The target application window is closed, not valid, or the process has ended.

UITestControlNotFoundException

The target application window was not found.

.NET Framework Security

See Also

Reference

ApplicationUnderTest Class

Microsoft.VisualStudio.TestTools.UITesting Namespace

Find