@@ -41,11 +41,11 @@ public async Task<NavigateResult> NavigateAsync(BrowsingContext context, string
4141 return await Broker . ExecuteCommandAsync ( new NavigateCommand ( @params ) , options , JsonContext . NavigateCommand , JsonContext . NavigateResult ) . ConfigureAwait ( false ) ;
4242 }
4343
44- public async Task < EmptyResult > ActivateAsync ( BrowsingContext context , ActivateOptions ? options = null )
44+ public async Task < ActivateResult > ActivateAsync ( BrowsingContext context , ActivateOptions ? options = null )
4545 {
4646 var @params = new ActivateParameters ( context ) ;
4747
48- return await Broker . ExecuteCommandAsync ( new ActivateCommand ( @params ) , options , JsonContext . ActivateCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
48+ return await Broker . ExecuteCommandAsync ( new ActivateCommand ( @params ) , options , JsonContext . ActivateCommand , JsonContext . ActivateResult ) . ConfigureAwait ( false ) ;
4949 }
5050
5151 public async Task < LocateNodesResult > LocateNodesAsync ( BrowsingContext context , Locator locator , LocateNodesOptions ? options = null )
@@ -62,11 +62,11 @@ public async Task<CaptureScreenshotResult> CaptureScreenshotAsync(BrowsingContex
6262 return await Broker . ExecuteCommandAsync ( new CaptureScreenshotCommand ( @params ) , options , JsonContext . CaptureScreenshotCommand , JsonContext . CaptureScreenshotResult ) . ConfigureAwait ( false ) ;
6363 }
6464
65- public async Task < EmptyResult > CloseAsync ( BrowsingContext context , CloseOptions ? options = null )
65+ public async Task < CloseResult > CloseAsync ( BrowsingContext context , CloseOptions ? options = null )
6666 {
6767 var @params = new CloseParameters ( context , options ? . PromptUnload ) ;
6868
69- return await Broker . ExecuteCommandAsync ( new CloseCommand ( @params ) , options , JsonContext . BrowsingContext_CloseCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
69+ return await Broker . ExecuteCommandAsync ( new CloseCommand ( @params ) , options , JsonContext . BrowsingContext_CloseCommand , JsonContext . BrowsingContext_CloseResult ) . ConfigureAwait ( false ) ;
7070 }
7171
7272 public async Task < TraverseHistoryResult > TraverseHistoryAsync ( BrowsingContext context , int delta , TraverseHistoryOptions ? options = null )
@@ -76,18 +76,18 @@ public async Task<TraverseHistoryResult> TraverseHistoryAsync(BrowsingContext co
7676 return await Broker . ExecuteCommandAsync ( new TraverseHistoryCommand ( @params ) , options , JsonContext . TraverseHistoryCommand , JsonContext . TraverseHistoryResult ) . ConfigureAwait ( false ) ;
7777 }
7878
79- public async Task < NavigateResult > ReloadAsync ( BrowsingContext context , ReloadOptions ? options = null )
79+ public async Task < ReloadResult > ReloadAsync ( BrowsingContext context , ReloadOptions ? options = null )
8080 {
8181 var @params = new ReloadParameters ( context , options ? . IgnoreCache , options ? . Wait ) ;
8282
83- return await Broker . ExecuteCommandAsync ( new ReloadCommand ( @params ) , options , JsonContext . ReloadCommand , JsonContext . NavigateResult ) . ConfigureAwait ( false ) ;
83+ return await Broker . ExecuteCommandAsync ( new ReloadCommand ( @params ) , options , JsonContext . ReloadCommand , JsonContext . ReloadResult ) . ConfigureAwait ( false ) ;
8484 }
8585
86- public async Task < EmptyResult > SetViewportAsync ( BrowsingContext context , SetViewportOptions ? options = null )
86+ public async Task < SetViewportResult > SetViewportAsync ( BrowsingContext context , SetViewportOptions ? options = null )
8787 {
8888 var @params = new SetViewportParameters ( context , options ? . Viewport , options ? . DevicePixelRatio ) ;
8989
90- return await Broker . ExecuteCommandAsync ( new SetViewportCommand ( @params ) , options , JsonContext . SetViewportCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
90+ return await Broker . ExecuteCommandAsync ( new SetViewportCommand ( @params ) , options , JsonContext . SetViewportCommand , JsonContext . SetViewportResult ) . ConfigureAwait ( false ) ;
9191 }
9292
9393 public async Task < GetTreeResult > GetTreeAsync ( GetTreeOptions ? options = null )
@@ -104,11 +104,11 @@ public async Task<PrintResult> PrintAsync(BrowsingContext context, PrintOptions?
104104 return await Broker . ExecuteCommandAsync ( new PrintCommand ( @params ) , options , JsonContext . PrintCommand , JsonContext . PrintResult ) . ConfigureAwait ( false ) ;
105105 }
106106
107- public async Task < EmptyResult > HandleUserPromptAsync ( BrowsingContext context , HandleUserPromptOptions ? options = null )
107+ public async Task < HandleUserPromptResult > HandleUserPromptAsync ( BrowsingContext context , HandleUserPromptOptions ? options = null )
108108 {
109109 var @params = new HandleUserPromptParameters ( context , options ? . Accept , options ? . UserText ) ;
110110
111- return await Broker . ExecuteCommandAsync ( new HandleUserPromptCommand ( @params ) , options , JsonContext . HandleUserPromptCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
111+ return await Broker . ExecuteCommandAsync ( new HandleUserPromptCommand ( @params ) , options , JsonContext . HandleUserPromptCommand , JsonContext . HandleUserPromptResult ) . ConfigureAwait ( false ) ;
112112 }
113113
114114 public async Task < Subscription > OnNavigationStartedAsync ( Func < NavigationInfo , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
0 commit comments