Table of Contents

Interface IBrowserFactory

Namespace
Xping.Sdk.Core.Clients.Browser
Assembly
Xping.Sdk.Core.dll

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 BrowserConfiguration

A BrowserConfiguration object that represents the browser configuration, such as browser type, timeout, and user agent.

settings TestSettings

A 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.