DriverBuilder
The DriverBuilder
is responsible for the registration of a IDriverBuilder
instance and the creation of IDriver
instances.
Register
Section titled “Register”Description: Registers a IDriverBuilder
instance used to instantiate new IDriver
instances of the same target integration (e.g. Selenium / Playwright).
Returns: void
DriverBuilder.Register<TDriverBuilder>();
Create
Section titled “Create”Description: Creates a new IDriver
instance of the registered integration type (e.g. Selenium / Playwright).
Arguments: DriverOptions
| WebDriverOptions
Returns: IDriver
DriverBuilder.Create(new WebDriverOptions());