DocumentEngine
Namespace: E2E.Engine
public sealed class DocumentEngine : IEngineIn-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
Constructors
Section titled “Constructors”DocumentEngine(DocumentWorld)
Section titled “DocumentEngine(DocumentWorld)”public DocumentEngine(DocumentWorld world)Parameters
| Name | Type | Description |
|---|---|---|
world |
DocumentWorld |
Fields
Section titled “Fields”EngineVersion
Section titled “EngineVersion”public const string EngineVersion = "1.0.0"Value: string
Properties
Section titled “Properties”Capabilities
Section titled “Capabilities”public EngineCapabilities Capabilities { get; }Value: EngineCapabilities
Platform
Section titled “Platform”public string Platform { get; }Value: string
Version
Section titled “Version”public string Version { get; }Value: string
Methods
Section titled “Methods”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>