App

class App(path_to_exe: str, window_title: str | None = None, timeout: float = 1)[source]

Bases: object

Manage an application process and its UI wrapper.

start_app()[source]

Start the application process and bind its UI.

Raises:

WindowDoesNotValidException – If the window is not found or the application cannot be opened.

stop_app()[source]

Close the application window and stop the process.

property ui: BaseUi

Return the UI wrapper for the running application.

Returns:

UI wrapper bound to the application window.

Return type:

BaseUi