Docs · API reference · Motus.Abstractions
IBrowserPool Interface#
Manages a pool of browser instances for concurrent test execution.
public interface IBrowserPool : System.IAsyncDisposable
Implements System.IAsyncDisposable
Properties#
ActiveCount Property#
The number of browsers currently leased out.
int ActiveCount { get; }
Property Value#
IdleCount Property#
The number of browsers sitting idle in the pool.
int IdleCount { get; }
Property Value#
Methods#
AcquireAsync(CancellationToken) Method#
Acquires a browser from the pool, launching a new instance if needed and capacity allows.
System.Threading.Tasks.Task<Motus.Abstractions.IBrowserLease> AcquireAsync(System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
Parameters#
ct System.Threading.CancellationToken