Interface IBrowserFactory
This interface defines a method to create a BrowserClient object that can interact with a web application using a headless browser, such as Chromium, Firefox, or WebKit. It also implements the IDisposable interface to support the disposal of unmanaged resources.
public interface IBrowserFactory : IDisposable
- Inherited Members
Methods
CreateClientAsync(BrowserConfiguration, TestSettings)
An asynchronous method that creates a BrowserClient object with the specified browser context options.
Task<BrowserClient> CreateClientAsync(BrowserConfiguration configuration, TestSettings settings)
Parameters
configuration
BrowserConfigurationA BrowserConfiguration object that represents the browser configuration, such as browser type, timeout, and user agent.
settings
TestSettingsA TestSettings object that contains various testing parameters and preferences, such as TestIdAttribute details, and other custom settings that may influence the behavior of the created BrowserClient.
Returns
- Task<BrowserClient>
A Task<BrowserClient> object that represents the asynchronous operation. The result of the task is a BrowserClient object that can interact with a web application using a browser.