diff --git a/dotnet/src/webdriver/BiDi/Browser/BrowserModule.cs b/dotnet/src/webdriver/BiDi/Browser/BrowserModule.cs index 51ce4e082a0de..99450f26c739a 100644 --- a/dotnet/src/webdriver/BiDi/Browser/BrowserModule.cs +++ b/dotnet/src/webdriver/BiDi/Browser/BrowserModule.cs @@ -31,7 +31,7 @@ public async Task CloseAsync(CloseOptions? options = null) public async Task CreateUserContextAsync(CreateUserContextOptions? options = null) { - var @params = new CreateUserContextCommandParameters(options?.AcceptInsecureCerts, options?.Proxy); + var @params = new CreateUserContextCommandParameters(options?.AcceptInsecureCerts, options?.Proxy, options?.UnhandledPromptBehavior); return await Broker.ExecuteCommandAsync(new CreateUserContextCommand(@params), options).ConfigureAwait(false); } diff --git a/dotnet/src/webdriver/BiDi/Browser/CreateUserContextCommand.cs b/dotnet/src/webdriver/BiDi/Browser/CreateUserContextCommand.cs index 278dd44009cba..9259d2457c947 100644 --- a/dotnet/src/webdriver/BiDi/Browser/CreateUserContextCommand.cs +++ b/dotnet/src/webdriver/BiDi/Browser/CreateUserContextCommand.cs @@ -24,11 +24,13 @@ namespace OpenQA.Selenium.BiDi.Browser; internal sealed class CreateUserContextCommand(CreateUserContextCommandParameters @params) : Command(@params, "browser.createUserContext"); -internal sealed record CreateUserContextCommandParameters(bool? AcceptInsecureCerts, Session.ProxyConfiguration? Proxy) : CommandParameters; +internal sealed record CreateUserContextCommandParameters(bool? AcceptInsecureCerts, Session.ProxyConfiguration? Proxy, Session.UserPromptHandler? UnhandledPromptBehavior) : CommandParameters; public sealed class CreateUserContextOptions : CommandOptions { public bool? AcceptInsecureCerts { get; set; } public Session.ProxyConfiguration? Proxy { get; set; } + + public Session.UserPromptHandler? UnhandledPromptBehavior { get; set; } }