Legerity.PageObjectGenerator
1.0.0
dotnet tool install --global Legerity.PageObjectGenerator --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Legerity.PageObjectGenerator --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Legerity.PageObjectGenerator&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Legerity.PageObjectGenerator --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Legerity Page Object Generator
A dotnet CLI tool that auto-generates Legerity page objects from your application's layout files. Parses XAML (Windows), AXML (Android), Storyboard/XIB (iOS), and HTML (Web) files to produce BasePage-derived classes with typed element properties.
Installation
dotnet tool install -g Legerity.PageObjectGenerator
Or update an existing install
dotnet tool update -g Legerity.PageObjectGenerator
Usage
legerity-pop -i <input-folder> -o <output-folder> -n <namespace> -p <platform>
| Option | Description |
|---|---|
-i, --input |
Path to the folder containing layout files |
-o, --output |
Path to the folder where generated .cs files are written |
-n, --namespace |
The C# namespace for the generated classes |
-p, --platform |
Target platform: Windows, Android, IOS, or Web |
Quick start
legerity-pop -i ./src/MyApp/Views -o ./tests/MyApp.UITests/Pages -n MyApp.UITests.Pages -p Windows
This scans all layout files under the input folder, generates a BasePage-derived class for each page with typed element properties and locators, and writes them to the output folder.
Documentation
Full documentation is available at made-apps.github.io/legerity.
License
This project is made available under the MIT license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 98 | 12/2/2026 |
| 1.0.0-alpha1 | 624 | 3/15/2024 |
| 0.14.0 | 2,045 | 2/17/2023 |
| 0.13.1 | 1,951 | 12/30/2022 |
| 0.13.0 | 2,021 | 12/23/2022 |
| 0.12.0 | 2,244 | 9/8/2022 |
| 0.12.0-preview2 | 2,017 | 6/9/2022 |
| 0.12.0-preview1 | 2,143 | 6/9/2022 |
| 0.11.1 | 2,076 | 6/6/2022 |