Method FindWindow
FindWindow(IWindowSelector, WindowMatchExpression)
Attempts to find a window that matches the specified windowMatchExpression
.
For more information, see Window Match Expressions wiki
Declaration
public static IWindowHandle FindWindow(this IWindowSelector windowSelector, WindowMatchExpression windowMatchExpression)
Parameters
Type | Name | Description |
---|---|---|
IWindowSelector | windowSelector | The window selector instance used to locate the window. |
WindowMatchExpression | windowMatchExpression | The expression describing the target window. |
Returns
Type | Description |
---|---|
IWindowHandle | The matching window handle if found. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if no window matching the specified expression is found. |