Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UseDisposeDriver(bool) method to AtataContextBuilder #778

Closed
YevgeniyShunevych opened this issue Oct 9, 2023 · 0 comments
Closed

Add UseDisposeDriver(bool) method to AtataContextBuilder #778

YevgeniyShunevych opened this issue Oct 9, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

Add method to AtataContextBuilder:

public AtataContextBuilder UseDisposeDriver(bool disposeDriver)

UseDisposeDriver - sets a value indicating whether to dispose the AtataContext.Driver when AtataContext.Dispose method is invoked. The default value is true.

The configuration method is useful in case when you need to reuse the same driver in different tests. For example, you can create one driver at test suite level (even using AtataContext for test suite) and pass it to all the suite tests, then dispose the driver on test suite tear down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant