EngineSessionSpec
Namespace: E2E.Engine
public sealed record EngineSessionSpec : IEquatable<EngineSessionSpec>Upstream’s session hooks of an engine: opening, navigating back, resizing, switching and closing tabs, restarting, and resetting the app.
Inheritance: object
Implements: IEquatable<EngineSessionSpec>
Properties
Section titled “Properties”public Func<OperationContext, Task>? Back { get; init; }Value: Func<OperationContext, Task>
CloseTab
Section titled “CloseTab”public Func<int, OperationContext, Task>? CloseTab { get; init; }Closes the open tab at a zero-based index, counted as SwitchTab counts them. When it was the tab shown, the engine shows
another, such as the tab that opened it. An index with no open tab, or the last open tab, is an ACTION_FAILED the model reads.
Value: Func<int, OperationContext, Task>
public Func<string, OperationContext, Task>? Open { get; init; }Value: Func<string, OperationContext, Task>
OpenLink
Section titled “OpenLink”public Func<string, OperationContext, Task>? OpenLink { get; init; }Opens a link in the app under test, as a deep link or a universal link would: App.OpenAsync(path) on a target that declares
app.linkBase lands here with the link joined and its scheme checked. A device engine’s hook; a target whose engine lacks it
cannot declare linkBase. Upstream’s session.openLink.
Value: Func<string, OperationContext, Task>
public Func<OperationContext, Task>? Reset { get; init; }Value: Func<OperationContext, Task>
Resize
Section titled “Resize”public Func<ViewportSize, OperationContext, Task>? Resize { get; init; }Value: Func<ViewportSize, OperationContext, Task>
Restart
Section titled “Restart”public Func<OperationContext, Task>? Restart { get; init; }Value: Func<OperationContext, Task>
SwitchTab
Section titled “SwitchTab”public Func<int, OperationContext, Task>? SwitchTab { get; init; }Shows the open tab at a zero-based index, in the order the tabs opened, as Tabs counts them. An index with
no open tab is an ACTION_FAILED the model reads.