@@ -96,17 +96,17 @@ await _page.WrapApiCallAsync(async () =>
9696
9797 public async Task < IAsyncDisposable > ShowOverlayAsync ( string html , ScreencastShowOverlayOptions ? options = default )
9898 {
99- var result = await _page . SendMessageToServerAsync ( "overlayShow " , new Dictionary < string , object ? >
99+ var result = await _page . SendMessageToServerAsync ( "screencastShowOverlay " , new Dictionary < string , object ? >
100100 {
101101 [ "html" ] = html ,
102102 [ "duration" ] = options ? . Duration ,
103103 } ) . ConfigureAwait ( false ) ;
104104 var id = result ! . Value . GetProperty ( "id" ) . GetString ( ) ;
105- return new DisposableStub ( ( ) => _page . SendMessageToServerAsync ( "overlayRemove " , new Dictionary < string , object ? > { [ "id" ] = id } ) ) ;
105+ return new DisposableStub ( ( ) => _page . SendMessageToServerAsync ( "screencastRemoveOverlay " , new Dictionary < string , object ? > { [ "id" ] = id } ) ) ;
106106 }
107107
108108 public Task ShowChapterAsync ( string title , ScreencastShowChapterOptions ? options = default )
109- => _page . SendMessageToServerAsync ( "overlayChapter " , new Dictionary < string , object ? >
109+ => _page . SendMessageToServerAsync ( "screencastChapter " , new Dictionary < string , object ? >
110110 {
111111 [ "title" ] = title ,
112112 [ "description" ] = options ? . Description ,
@@ -128,8 +128,8 @@ public Task HideActionsAsync()
128128 => _page . SendMessageToServerAsync ( "screencastHideActions" ) ;
129129
130130 public Task ShowOverlaysAsync ( )
131- => _page . SendMessageToServerAsync ( "overlaySetVisible " , new Dictionary < string , object ? > { [ "visible" ] = true } ) ;
131+ => _page . SendMessageToServerAsync ( "screencastSetOverlayVisible " , new Dictionary < string , object ? > { [ "visible" ] = true } ) ;
132132
133133 public Task HideOverlaysAsync ( )
134- => _page . SendMessageToServerAsync ( "overlaySetVisible " , new Dictionary < string , object ? > { [ "visible" ] = false } ) ;
134+ => _page . SendMessageToServerAsync ( "screencastSetOverlayVisible " , new Dictionary < string , object ? > { [ "visible" ] = false } ) ;
135135}
0 commit comments