Skip to content

Add driver creation retry functionality #794

@YevgeniyShunevych

Description

@YevgeniyShunevych

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();

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions