Application - FlaUI/FlaUI GitHub Wiki

The Application is usually the entry point to start testing.

There are several ways to get an Application object:

  • Create one with a constructor passing the appropriate parameters.
  • Call the static methods Attach, Launch, AttachOrLaunch or LaunchStoreApp with the appropriate parameters.

On the Application object you can now get the main window or any top level window. Be aware that the main window might not return what you expect (see Common Issues). In case you need another element which is below the application, you can use the search condition ByProcessId and pass it the ProcessId property of the Application.

When the application object is disposed, the application itself is closed as well.