diff --git a/404.html b/404.html index 0d78f2d2fcb..0a1be78fca5 100644 --- a/404.html +++ b/404.html @@ -6,7 +6,7 @@
Useful links: DevTools Protocol Viewer and Getting Started with DevTools Protocol.
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the CDPSession
class.
const client = await page.target().createCDPSession();
await client.send('Animation.enable');
client.on('Animation.animationCreated', () =>
console.log('Animation created!')
);
const response = await client.send('Animation.getPlaybackRate');
console.log('playback rate is ' + response.playbackRate);
await client.send('Animation.setPlaybackRate', {
playbackRate: response.playbackRate / 2,
});
const client = await page.createCDPSession();
await client.send('Animation.enable');
client.on('Animation.animationCreated', () =>
console.log('Animation created!')
);
const response = await client.send('Animation.getPlaybackRate');
console.log('playback rate is ' + response.playbackRate);
await client.send('Animation.setPlaybackRate', {
playbackRate: response.playbackRate / 2,
});
Method | Modifiers | Description |
---|---|---|
Detaches the cdpSession from the target. Once detached, the cdpSession object won't emit any events and can't be used to send messages. | ||
Returns the session's id. | ||