StageZero 0.3.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package StageZero --version 0.3.2                
NuGet\Install-Package StageZero -Version 0.3.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="StageZero" Version="0.3.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StageZero --version 0.3.2                
#r "nuget: StageZero, 0.3.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install StageZero as a Cake Addin
#addin nuget:?package=StageZero&version=0.3.2

// Install StageZero as a Cake Tool
#tool nuget:?package=StageZero&version=0.3.2                

StageZero

Build CodeQL

Please note

This project is a work-in-progress, some features may be missing and you may experience some bugs. If you do experience any issues, please raise them here.

What is StageZero?

StageZero is an automated UI testing library for the web that allows you to use whatever underlying WebDriver you wish (e.g. Selenium, or Playwright) to steer the browser.

Why?

StageZero puts flexibility and developer experience first. Want to change to a different UI testing framework (e.g. Selenium → Playwright)? You can with next to no refactoring required in your codebase. The less time you have to think about steering the browser, the more time you can invest in your tests. StageZero makes it easy to get started with next to no initial setup required.

Usage

Registering a DriverBuilder

Before writing any tests, first you have to register a IDriverBuilder instance globally (this only has to be done once!). For example, if you're wanting to use our Selenium implementation with NUnit you can do:

[SetUpFixture]
public class GlobalSetup
{
    [OneTimeSetUp]
    public class BeforeEverything()
    {
        DriverBuilder.Register<WebDriverBuilder>();
    }
}

Boom. That's it, you can start writing your tests!

Writing a test

StageZero handles all of the underlying logic required to create, navigate, interact with elements, and terminate drivers. All you have to do is write your test, no more managing frameworks! Following on from the example provided above, you can write a test for the web like:

public class Test
{
    private IDriverWeb _driver;

    [SetUp]
    public void BeforeEach()
    {
        _driver = DriverBuilder.Create(new WebDriverOptions());
    }

    [Test]
    public Task NavigateToGoogle()
    {
        await _driver.Navigate().ToUrl("https://google.com");
    }

    [TearDown]
    public Task AfterEach()
    {
        await _driver.Terminate();
    }
}

If you ever want to change to a different underlying driver (e.g. Playwright), all you have to do is swap out the registered builder for your desired UI testing frameworks implementation. All of your existing test logic 110% will work with the updated builder.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on StageZero:

Package Downloads
StageZero.Selenium

The StageZero Selenium implementation.

StageZero.Playwright

The StageZero Playwright implementation.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.5.104 116 11/17/2024
0.5.103 123 11/7/2024
0.5.102 118 11/7/2024
0.5.101 127 11/4/2024
0.5.100 134 10/24/2024
0.5.99 108 10/21/2024
0.5.98 124 10/21/2024
0.5.97 142 10/13/2024
0.5.96 124 10/13/2024
0.5.95 128 10/13/2024
0.5.94 130 10/9/2024
0.5.93 139 10/9/2024
0.5.92 133 10/5/2024
0.5.91 120 9/24/2024
0.5.90 144 9/24/2024
0.5.89 126 9/24/2024
0.5.88 132 9/24/2024
0.5.87 129 9/24/2024
0.5.86 130 9/24/2024
0.5.85 135 9/24/2024
0.5.84 148 9/18/2024
0.5.83 150 9/2/2024
0.5.82 147 9/2/2024
0.5.81 154 8/26/2024
0.5.80 170 8/26/2024
0.5.79 150 8/26/2024
0.5.78 169 8/22/2024
0.5.77 195 8/21/2024
0.5.76 171 8/19/2024
0.5.75 172 8/15/2024
0.5.74 163 8/12/2024
0.5.73 86 8/5/2024
0.5.72 99 8/3/2024
0.5.71 102 8/2/2024
0.5.70 121 7/23/2024
0.5.69 122 7/23/2024
0.5.68 142 7/16/2024
0.5.67 144 7/16/2024
0.5.66 159 7/8/2024
0.5.65 161 7/8/2024
0.5.64 151 7/2/2024
0.5.63 156 6/25/2024
0.5.62 170 6/24/2024
0.5.61 186 6/18/2024
0.5.60 143 6/11/2024
0.5.59 142 6/11/2024
0.5.58 150 6/3/2024
0.5.57 168 5/27/2024
0.5.56 155 5/27/2024
0.5.55 133 5/20/2024
0.5.54 145 5/20/2024
0.5.53 121 5/20/2024
0.5.52 156 5/16/2024
0.5.51 162 5/11/2024
0.5.50 153 5/10/2024
0.5.49 198 5/6/2024
0.5.48 185 5/6/2024
0.5.47 202 5/4/2024
0.5.46 200 5/4/2024
0.5.45 195 5/3/2024
0.5.44 173 5/3/2024
0.5.43 184 5/3/2024
0.5.42 180 4/27/2024
0.5.41 191 4/20/2024
0.5.40 202 4/20/2024
0.5.39 178 4/6/2024
0.5.38 212 4/5/2024
0.5.37 176 4/5/2024
0.5.36 183 3/29/2024
0.5.35 211 3/28/2024
0.5.34 186 3/28/2024
0.5.33 198 3/24/2024
0.5.32 200 3/23/2024
0.5.31 181 3/23/2024
0.5.30 193 3/23/2024
0.5.29 203 3/23/2024
0.5.28 197 3/17/2024
0.5.27 180 3/8/2024
0.5.26 185 3/4/2024
0.5.25 206 3/3/2024
0.5.24 181 2/26/2024
0.5.23 181 2/26/2024
0.5.22 184 2/23/2024
0.5.21 176 2/23/2024
0.5.20 181 2/17/2024
0.5.19 178 2/8/2024
0.5.18 151 1/27/2024
0.5.17 156 1/27/2024
0.5.16 172 1/27/2024
0.5.15 152 1/27/2024
0.5.14 262 1/1/2024
0.5.13 231 12/9/2023
0.5.12 228 12/9/2023
0.5.11 257 12/1/2023
0.5.10 205 12/1/2023
0.5.9 238 11/17/2023
0.5.8 198 11/15/2023
0.5.7 191 11/10/2023
0.5.6 208 11/10/2023
0.5.5 206 11/10/2023
0.5.4 190 11/3/2023
0.5.0 205 10/29/2023
0.4.0 208 10/28/2023
0.3.10 188 10/23/2023
0.3.9 185 10/20/2023
0.3.8 172 10/16/2023
0.3.7 189 10/16/2023
0.3.6 217 10/15/2023
0.3.5 185 10/15/2023
0.3.4 202 10/14/2023
0.3.3 202 10/14/2023
0.3.2 180 10/10/2023
0.3.1 184 10/8/2023
0.3.0 199 10/8/2023
0.2.0 202 10/6/2023
0.1.27 209 10/4/2023
0.1.26 205 10/4/2023
0.1.25 183 10/4/2023
0.1.24 168 9/29/2023
0.1.23 201 9/28/2023
0.1.22 184 9/28/2023
0.1.21 189 9/28/2023
0.1.20 184 9/28/2023
0.1.19 181 9/28/2023
0.1.18 167 9/28/2023
0.1.17 210 9/28/2023
0.1.16 213 9/28/2023
0.1.15 202 9/28/2023
0.1.14 190 9/28/2023
0.1.13 194 9/28/2023
0.1.12 188 9/28/2023
0.1.11 191 9/28/2023
0.1.10 193 9/28/2023
0.1.9 189 9/28/2023
0.1.8 198 9/28/2023
0.1.7 194 9/28/2023
0.1.6 182 9/28/2023
0.1.5 191 9/28/2023
0.1.4 185 9/28/2023
0.1.3 187 9/28/2023
0.1.2 191 9/28/2023
0.1.1 196 9/28/2023
0.1.0 204 9/28/2023