Skip to content

Commit 85935f7

Browse files
authored
Update Listening to the protocol documentation with CDP editor (#210)
1 parent e1a1687 commit 85935f7

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

pages/images/cdp-editor.png

61.4 KB
Loading

pages/images/protocol-monitor.png

9.3 KB
Loading

pages/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ type the command into the prompt at the bottom of the Protocol Monitor panel and
104104
<code>Page.captureScreenshot</code>. If the command requires parameters, provide them as JSON, for example,
105105
<code>{"command":"Page.captureScreenshot","parameters":{"format": "jpeg"}}</code>.
106106

107+
<p> By clicking on the icon next to the command input (available starting from Chrome version 117.0.5936.0), you can open the command editor. After you select a CDP command, the editor creates a structured form based on the protocol definitions that allows you to edit parameters, and view their documentation and types. Send the commands by clicking on the send button or using <code>Ctrl + Enter</code>. Use the context menu in the list of previously sent commands to open one of them in the editor.
108+
109+
<figure class="screenshot">
110+
<a href="images/cdp-editor.png" target="_blank" style="text-align: center; display:block;">
111+
<img src="images/cdp-editor.png" height="300" alt="Screenshot of CDP Editor" loading="lazy">
112+
</a>
113+
</figure>
114+
115+
107116
<p>Alternatively, you can execute commands from the DevTools console. First, <a href="https://stackoverflow.com/a/12291163/89484">open devtools-on-devtools</a>,
108117
then within the inner DevTools window, use <code>Main.MainImpl.sendOverProtocol()</code> in the console:
109118

0 commit comments

Comments
 (0)