Docs · API reference · Motus.Testing.xUnit
SharedBrowserFixture Class#
xUnit collection fixture that manages a shared browser instance. Use with MotusCollection to share a single browser across test classes.
public class SharedBrowserFixture : Xunit.IAsyncLifetime
Inheritance System.Object → SharedBrowserFixture
Implements Xunit.IAsyncLifetime
Properties#
Browser Property#
The shared browser instance.
public Motus.Abstractions.IBrowser Browser { get; }
Property Value#
Methods#
NewContextAsync(ContextOptions) Method#
Creates a new isolated browser context.
public System.Threading.Tasks.Task<Motus.Abstractions.IBrowserContext> NewContextAsync(Motus.Abstractions.ContextOptions? options=null);
Parameters#
options ContextOptions