Skip to content

Commit 90d84e8

Browse files
vigneshshanmugampavelfeldman
authored andcommitted
docs(api): fix cdp session creation example (#709)
1 parent ff30235 commit 90d84e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3578,7 +3578,7 @@ Useful links:
35783578
- Getting Started with DevTools Protocol: https://github.com/aslushnikov/getting-started-with-cdp/blob/master/README.md
35793579

35803580
```js
3581-
const client = await page.chromium.pageTarget(page).createCDPSession();
3581+
const client = await chromium.pageTarget(page).createCDPSession();
35823582
await client.send('Animation.enable');
35833583
client.on('Animation.animationCreated', () => console.log('Animation created!'));
35843584
const response = await client.send('Animation.getPlaybackRate');

0 commit comments

Comments
 (0)