-
-
Notifications
You must be signed in to change notification settings - Fork 80
Closed
Description
The functionality of driver creation retries was added. From now on, when driver creation fails with an exception, 2 more attempts are taken to retry driver creation. It can help reduce the number of test setup failures, as rarely driver constructors can throw exception.
The following configuration method was added to the base DriverAtataContextBuilder<TBuilder>
class:
public TBuilder WithCreateRetries(int createRetries);
The method specifies the count of possible driver creation retries in case exceptions occur during creation. The default value is 2
. Set 0
to omit retries.
Usage
AtataContext.GlobalConfiguration
.UseChrome()
.WithCreateRetries(3)
.Build();