You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/api/class-inspector.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
* since: v1.59
3
3
* langs: js
4
4
5
-
The `Inspector` object provides access to the Playwright inspector's screencast capabilities, allowing you to capture live JPEG frames from the page as it renders.
5
+
The `Inspector` object provides access to the Playwright inspector's capabilities.
thrownewError(`Screencast is already running with different options (${this._screencastOptions.width}x${this._screencastOptions.height} quality=${this._screencastOptions.quality})`);
awaitexpect(page.inspector().startScreencast({size: {width: 320,height: 240}})).rejects.toThrow('Screencast is already running with different options');
932
+
933
+
awaitpage.inspector().stopScreencast();
934
+
awaitcontext.close();
935
+
});
936
+
937
+
it('startScreencast allows restart with different options after stop',async({ browser })=>{
awaitexpect(page.inspector().startScreencast({size: {width: 320,height: 240}})).rejects.toThrow('Screencast is already running with different options');
0 commit comments