Skip to content

DocumentEngine

Namespace: E2E.Engine

public sealed class DocumentEngine : IEngine

In-memory page engine for samples and tests that do not need a browser. Each open builds a fresh page from the route mapped on DocumentWorld. Actions mutate that page until the next open. app.back rebuilds the previous route, and app.restart and app.clearState drop the history and reopen the base URL. The document engine has no browser, so the Browser fixture is unsupported.

Inheritance: object

Implements: IEngine

View source

public DocumentEngine(DocumentWorld world)

Parameters

Name Type Description
world DocumentWorld

View source

public const string EngineVersion = "1.0.0"

Value: string

View source

public EngineCapabilities Capabilities { get; }

Value: EngineCapabilities

View source

public string Platform { get; }

Value: string

View source

public string Version { get; }

Value: string

View source

StartAsync(EngineStartOptions, CancellationToken)

Section titled “StartAsync(EngineStartOptions, CancellationToken)”
public Task<IEngineSession> StartAsync(EngineStartOptions options, CancellationToken cancellationToken)

Parameters

Name Type Description
options EngineStartOptions
cancellationToken CancellationToken

Returns: Task<IEngineSession>

View source