Docs · API reference · Motus.Testing.xUnit
BrowserContextFixture Class#
xUnit class fixture that creates an isolated browser context and page per test class.
Requires SharedBrowserFixture via collection fixture injection.
Note: Automatic failure tracing is not supported for xUnit class fixtures because
xUnit does not expose per-test outcome in DisposeAsync. Use
Context.Tracing.StartAsync / StopAsync manually for per-test traces.
public class BrowserContextFixture : Xunit.IAsyncLifetime
Inheritance System.Object → BrowserContextFixture
Implements Xunit.IAsyncLifetime
Properties#
Context Property#
The browser context for this test class.
public Motus.Abstractions.IBrowserContext Context { get; }
Property Value#
Page Property#
A page within the test class context.
public Motus.Abstractions.IPage Page { get; }