Skip to content

EngineHandle

Namespace: E2E.Engine

public sealed class EngineHandle

Upstream’s engine handle (defineEngine’s result, engine/manifest.ts): the validated engine with its capability set. A handle is only built by DefineEngine(EngineSpec).

Inheritance: object

View source

public IReadOnlyList<string>? Actions { get; }

The action kinds Perform honors, or null without the actions capability.

Value: IReadOnlyList<string>

public EngineArtifactsSpec? Artifacts { get; }

Value: EngineArtifactsSpec

public IReadOnlySet<string> Capabilities { get; }

The capabilities the spec declares: observation, computed-style, actions, location, viewport-intersection, pointer, keyboard, state, artifacts, and each fixture name.

Value: IReadOnlySet<string>

public Func<EngineDisposeContext, Task>? Dispose { get; }

Value: Func<EngineDisposeContext, Task>

public Func<EngineDoctorInfo, Task<IReadOnlyList<EngineDoctorCheck>>>? Doctor { get; }

Value: Func<EngineDoctorInfo, Task<IReadOnlyList<EngineDoctorCheck>>>

public Func<EngineCleanupContext, Task>? EndAttempt { get; }

Value: Func<EngineCleanupContext, Task>

public bool? FileApps { get; }

Whether the engine opens a file: URL app; null when the spec does not declare it.

Value: bool?

public Func<EngineFinishInfo, Task>? Finish { get; }

Value: Func<EngineFinishInfo, Task>

public IReadOnlyDictionary<string, Delegate>? Fixtures { get; }

Value: IReadOnlyDictionary<string, Delegate>

public bool? GrantsAllPermissions { get; }

Whether the engine grants app.permissions: 'all'; null when the spec does not declare it.

Value: bool?

public Func<EngineInitInfo, Task>? Init { get; }

Value: Func<EngineInitInfo, Task>

public string? Isolation { get; }

Worker when the engine’s fixtures, app, and screen outlive an attempt; null for the default, Attempt.

Value: string

public EngineKeyboardSpec? Keyboard { get; }

Value: EngineKeyboardSpec

public bool? LaunchArgumentValues { get; }

Whether the engine reads the object form of app.launchArguments; null when the spec does not declare it.

Value: bool?

public Func<LocatorExpression, OperationContext, Task<IReadOnlyList<EngineNode>>>? Locate { get; }

Value: Func<LocatorExpression, OperationContext, Task<IReadOnlyList<EngineNode>>>

public string Name { get; }

Value: string

public Func<OperationContext, ObserveOptions?, Task<EngineSnapshot>>? Observe { get; }

Value: Func<OperationContext, ObserveOptions, Task<EngineSnapshot>>

public Func<NodeRef, LocatorAction, OperationContext, Task>? Perform { get; }

Value: Func<NodeRef, LocatorAction, OperationContext, Task>

public Func<Point, PointerAction, OperationContext, Task>? PerformAt { get; }

Value: Func<Point, PointerAction, OperationContext, Task>

public string? Platform { get; }

Value: string

public IReadOnlyList<string>? PointerActions { get; }

The pointer action kinds PerformAt honors, or null without the pointer capability.

Value: IReadOnlyList<string>

public Func<EnginePrepareInfo, Task<EnginePrepareResult?>>? Prepare { get; }

Value: Func<EnginePrepareInfo, Task<EnginePrepareResult>>

public Func<NodeRef, IReadOnlyList<string>, OperationContext, Task<IReadOnlyDictionary<string, string>>>? ReadStyle { get; }

Value: Func<NodeRef, IReadOnlyList<string>, OperationContext, Task<IReadOnlyDictionary<string, string>>>

public IReadOnlyList<Secret>? Secrets { get; }

The secrets the engine holds, each name once; null when the spec declares none.

Value: IReadOnlyList<Secret>

public bool? SelectsDevice { get; }

Whether Prepare binds the device --device names; null when the spec does not declare it.

Value: bool?

public EngineSessionSpec? Session { get; }

Value: EngineSessionSpec

public Func<EngineCleanupContext, Task>? SettleAttempt { get; }

Value: Func<EngineCleanupContext, Task>

public int SpiVersion { get; }

Value: int

public Func<EngineAttemptContext, Task>? StartAttempt { get; }

Value: Func<EngineAttemptContext, Task>

public EngineStateSpec? State { get; }

Value: EngineStateSpec

public bool? TapModifiers { get; }

Whether the tap actions take modifier keys; null when the spec does not declare it.

Value: bool?

public Action<EngineAppDeclaration, EngineAppCheckInfo>? ValidateApp { get; }

Value: Action<EngineAppDeclaration, EngineAppCheckInfo>

public string Version { get; }

Value: string

public Func<NodeRef, OperationContext, Task<ViewportIntersection>>? ViewportIntersection { get; }

Value: Func<NodeRef, OperationContext, Task<ViewportIntersection>>

public int? Workers { get; }

Value: int?