mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: use encodeToString instead of encode in examples (#27297)
Fixes https://github.com/microsoft/playwright/issues/27273
This commit is contained in:
parent
9a5356f93b
commit
3ea03c9f4c
@ -75,7 +75,7 @@ console.log(buffer.toString('base64'));
|
|||||||
|
|
||||||
```java
|
```java
|
||||||
byte[] buffer = page.screenshot();
|
byte[] buffer = page.screenshot();
|
||||||
System.out.println(Base64.getEncoder().encode(buffer));
|
System.out.println(Base64.getEncoder().encodeToString(buffer));
|
||||||
```
|
```
|
||||||
|
|
||||||
```python async
|
```python async
|
||||||
|
Loading…
x
Reference in New Issue
Block a user