Functions
toBeFocused
- toBeFocused(element: UIElement, expectedState: boolean, options??: Options): Promise<SyncExpectationResult>
-
Parameters
-
element: UIElement
-
expectedState: boolean
-
Optional options: Options = true
Returns Promise<SyncExpectationResult>
Use
toBeFocused
function when you want to check that an element is focused