@@ -24,28 +24,28 @@ namespace OpenQA.Selenium.BiDi.Browser;
2424
2525public sealed class BrowserModule : Module
2626{
27- public async Task < EmptyResult > CloseAsync ( CloseOptions ? options = null )
27+ public async Task < CloseResult > CloseAsync ( CloseOptions ? options = null )
2828 {
29- return await Broker . ExecuteCommandAsync ( new CloseCommand ( ) , options , JsonContext . Browser_CloseCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
29+ return await Broker . ExecuteCommandAsync ( new CloseCommand ( ) , options , JsonContext . Browser_CloseCommand , JsonContext . Browser_CloseResult ) . ConfigureAwait ( false ) ;
3030 }
3131
32- public async Task < UserContextInfo > CreateUserContextAsync ( CreateUserContextOptions ? options = null )
32+ public async Task < CreateUserContextResult > CreateUserContextAsync ( CreateUserContextOptions ? options = null )
3333 {
3434 var @params = new CreateUserContextParameters ( options ? . AcceptInsecureCerts , options ? . Proxy , options ? . UnhandledPromptBehavior ) ;
3535
36- return await Broker . ExecuteCommandAsync ( new CreateUserContextCommand ( @params ) , options , JsonContext . CreateUserContextCommand , JsonContext . UserContextInfo ) . ConfigureAwait ( false ) ;
36+ return await Broker . ExecuteCommandAsync ( new CreateUserContextCommand ( @params ) , options , JsonContext . CreateUserContextCommand , JsonContext . CreateUserContextResult ) . ConfigureAwait ( false ) ;
3737 }
3838
3939 public async Task < GetUserContextsResult > GetUserContextsAsync ( GetUserContextsOptions ? options = null )
4040 {
4141 return await Broker . ExecuteCommandAsync ( new GetUserContextsCommand ( ) , options , JsonContext . GetUserContextsCommand , JsonContext . GetUserContextsResult ) . ConfigureAwait ( false ) ;
4242 }
4343
44- public async Task < EmptyResult > RemoveUserContextAsync ( UserContext userContext , RemoveUserContextOptions ? options = null )
44+ public async Task < RemoveUserContextResult > RemoveUserContextAsync ( UserContext userContext , RemoveUserContextOptions ? options = null )
4545 {
4646 var @params = new RemoveUserContextParameters ( userContext ) ;
4747
48- return await Broker . ExecuteCommandAsync ( new RemoveUserContextCommand ( @params ) , options , JsonContext . RemoveUserContextCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
48+ return await Broker . ExecuteCommandAsync ( new RemoveUserContextCommand ( @params ) , options , JsonContext . RemoveUserContextCommand , JsonContext . RemoveUserContextResult ) . ConfigureAwait ( false ) ;
4949 }
5050
5151 public async Task < GetClientWindowsResult > GetClientWindowsAsync ( GetClientWindowsOptions ? options = null )
@@ -54,24 +54,24 @@ public async Task<GetClientWindowsResult> GetClientWindowsAsync(GetClientWindows
5454 ) . ConfigureAwait ( false ) ;
5555 }
5656
57- public async Task < EmptyResult > SetDownloadBehaviorAllowedAsync ( string destinationFolder , SetDownloadBehaviorOptions ? options = null )
57+ public async Task < SetDownloadBehaviorResult > SetDownloadBehaviorAllowedAsync ( string destinationFolder , SetDownloadBehaviorOptions ? options = null )
5858 {
5959 var @params = new SetDownloadBehaviorParameters ( new DownloadBehaviorAllowed ( destinationFolder ) , options ? . UserContexts ) ;
6060
61- return await Broker . ExecuteCommandAsync ( new SetDownloadBehaviorCommand ( @params ) , options , JsonContext . SetDownloadBehaviorCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
61+ return await Broker . ExecuteCommandAsync ( new SetDownloadBehaviorCommand ( @params ) , options , JsonContext . SetDownloadBehaviorCommand , JsonContext . SetDownloadBehaviorResult ) . ConfigureAwait ( false ) ;
6262 }
6363
64- public async Task < EmptyResult > SetDownloadBehaviorAllowedAsync ( SetDownloadBehaviorOptions ? options = null )
64+ public async Task < SetDownloadBehaviorResult > SetDownloadBehaviorAllowedAsync ( SetDownloadBehaviorOptions ? options = null )
6565 {
6666 var @params = new SetDownloadBehaviorParameters ( null , options ? . UserContexts ) ;
6767
68- return await Broker . ExecuteCommandAsync ( new SetDownloadBehaviorCommand ( @params ) , options , JsonContext . SetDownloadBehaviorCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
68+ return await Broker . ExecuteCommandAsync ( new SetDownloadBehaviorCommand ( @params ) , options , JsonContext . SetDownloadBehaviorCommand , JsonContext . SetDownloadBehaviorResult ) . ConfigureAwait ( false ) ;
6969 }
7070
71- public async Task < EmptyResult > SetDownloadBehaviorDeniedAsync ( SetDownloadBehaviorOptions ? options = null )
71+ public async Task < SetDownloadBehaviorResult > SetDownloadBehaviorDeniedAsync ( SetDownloadBehaviorOptions ? options = null )
7272 {
7373 var @params = new SetDownloadBehaviorParameters ( new DownloadBehaviorDenied ( ) , options ? . UserContexts ) ;
7474
75- return await Broker . ExecuteCommandAsync ( new SetDownloadBehaviorCommand ( @params ) , options , JsonContext . SetDownloadBehaviorCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
75+ return await Broker . ExecuteCommandAsync ( new SetDownloadBehaviorCommand ( @params ) , options , JsonContext . SetDownloadBehaviorCommand , JsonContext . SetDownloadBehaviorResult ) . ConfigureAwait ( false ) ;
7676 }
7777}
0 commit comments