Docs · API reference · Motus.Abstractions
ConnectOptions Class#
Options for connecting to a browser that is already running.
public sealed record ConnectOptions : System.IEquatable<Motus.Abstractions.ConnectOptions>
Inheritance System.Object → ConnectOptions
Implements System.IEquatable<ConnectOptions>
Properties#
AdoptExistingTargets Property#
Whether the contexts and pages already open in the browser are adopted on connect, so they appear in Contexts and can be driven. Default: true.
public bool AdoptExistingTargets { get; init; }
Property Value#
Remarks#
This decides what is taken over, not what is watched. With it off, a tab opened by whoever else is using the browser stays out of Motus, but a popup opened by a page of a context Motus created is still tracked and still raises Popup.
SlowMo Property#
Slows down operations by the specified number of milliseconds.
public int SlowMo { get; init; }
Property Value#
Timeout Property#
Maximum time in milliseconds to wait for the connection to be established.
public int Timeout { get; init; }