docs(python): fix CDPSession documentation example (#30584)
This commit is contained in:
parent
1f63cbff08
commit
ebafb95054
|
|
@ -30,7 +30,7 @@ client.on("Animation.animationCreated", lambda: print("animation created!"))
|
||||||
response = await client.send("Animation.getPlaybackRate")
|
response = await client.send("Animation.getPlaybackRate")
|
||||||
print("playback rate is " + str(response["playbackRate"]))
|
print("playback rate is " + str(response["playbackRate"]))
|
||||||
await client.send("Animation.setPlaybackRate", {
|
await client.send("Animation.setPlaybackRate", {
|
||||||
playbackRate: response["playbackRate"] / 2
|
"playbackRate": response["playbackRate"] / 2
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -41,7 +41,7 @@ client.on("Animation.animationCreated", lambda: print("animation created!"))
|
||||||
response = client.send("Animation.getPlaybackRate")
|
response = client.send("Animation.getPlaybackRate")
|
||||||
print("playback rate is " + str(response["playbackRate"]))
|
print("playback rate is " + str(response["playbackRate"]))
|
||||||
client.send("Animation.setPlaybackRate", {
|
client.send("Animation.setPlaybackRate", {
|
||||||
playbackRate: response["playbackRate"] / 2
|
"playbackRate": response["playbackRate"] / 2
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
```csharp
|
```csharp
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue