Class DriverFinder
Discovers and manages paths to browser drivers and browser binaries. Uses Selenium Manager to automatically locate compatible driver and browser versions.
public class DriverFinder
- Inheritance
-
DriverFinder
- Inherited Members
Remarks
Warning: This is an experimental API that is subject to change in future versions.
Constructors
DriverFinder(DriverOptions)
Discovers and manages paths to browser drivers and browser binaries. Uses Selenium Manager to automatically locate compatible driver and browser versions.
public DriverFinder(DriverOptions options)
Parameters
optionsDriverOptionsThe driver options specifying browser configuration.
Remarks
Warning: This is an experimental API that is subject to change in future versions.
Exceptions
- ArgumentNullException
When
optionsis null.
Methods
GetBrowserPathAsync(CancellationToken)
Gets the path to the browser binary. Discovers the browser path on first call using Selenium Manager.
public ValueTask<string> GetBrowserPathAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA cancellation token to observe while waiting for the task to complete.
Returns
- ValueTask<string>
A task that represents the asynchronous operation. The task result contains the full path to the browser binary.
Exceptions
- NoSuchDriverException
When browser name is not specified or driver/browser cannot be found.
GetDriverPathAsync(CancellationToken)
Gets the path to the browser driver executable. Discovers the driver path on first call using Selenium Manager.
public ValueTask<string> GetDriverPathAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA cancellation token to observe while waiting for the task to complete.
Returns
- ValueTask<string>
A task that represents the asynchronous operation. The task result contains the full path to the driver executable.
Exceptions
- NoSuchDriverException
When browser name is not specified or driver/browser cannot be found.