Skip to content

Commit

Permalink
docs(api): fix cdp session creation example (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshshanmugam authored and pavelfeldman committed Jan 28, 2020
1 parent ff30235 commit 90d84e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3578,7 +3578,7 @@ Useful links:
- Getting Started with DevTools Protocol: https://github.com/aslushnikov/getting-started-with-cdp/blob/master/README.md

```js
const client = await page.chromium.pageTarget(page).createCDPSession();
const client = await chromium.pageTarget(page).createCDPSession();
await client.send('Animation.enable');
client.on('Animation.animationCreated', () => console.log('Animation created!'));
const response = await client.send('Animation.getPlaybackRate');
Expand Down

0 comments on commit 90d84e8

Please sign in to comment.