MAUIverse MAUIverse

UI Automated Testing for .NET MAUI with MauiDevFlow — And How AI Wrote the Tests

UI testing in .NET MAUI has historically been painful — Appium requires a Java server, platform-specific drivers, and complex setup. MauiDevFlow takes a different approach by embedding a lightweight agent directly in your MAUI app that exposes a CLI and REST API for inspecting and interacting with the live UI.

What you’ll learn

  • How to set up MauiDevFlow with a single NuGet package and one line in MauiProgram.cs
  • What the CLI can do: visual tree inspection, element queries, tap/fill interactions, screenshots, Shell navigation, and assertions
  • How to add AutomationIds systematically across all your XAML pages
  • How to build a MauiDevFlowDriver class that wraps the CLI for use in xUnit tests
  • How to structure test fixtures with IAsyncLifetime and xUnit collection semantics
  • What a full 48-test suite looks like across navigation, settings, ride times, maps, and cross-page flows
  • How AI (Claude Code) analyzed XAML files and generated AutomationIds, test infrastructure, and test cases in a single session

View Source →

← Back to Community Feed

}