mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
Update class-consolemessage.md (#22261)
This commit is contained in:
parent
eed5b4c83b
commit
2b1a121133
@ -23,8 +23,8 @@ await page.evaluate(() => {
|
|||||||
const msg = await msgPromise;
|
const msg = await msgPromise;
|
||||||
|
|
||||||
// Deconstruct console log arguments
|
// Deconstruct console log arguments
|
||||||
await msg.args[0].jsonValue() // hello
|
await msg.args()[0].jsonValue() // hello
|
||||||
await msg.args[1].jsonValue() // 42
|
await msg.args()[1].jsonValue() // 42
|
||||||
```
|
```
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
|||||||
4
packages/playwright-core/types/types.d.ts
vendored
4
packages/playwright-core/types/types.d.ts
vendored
@ -16146,8 +16146,8 @@ export interface BrowserServer {
|
|||||||
* const msg = await msgPromise;
|
* const msg = await msgPromise;
|
||||||
*
|
*
|
||||||
* // Deconstruct console log arguments
|
* // Deconstruct console log arguments
|
||||||
* await msg.args[0].jsonValue() // hello
|
* await msg.args()[0].jsonValue() // hello
|
||||||
* await msg.args[1].jsonValue() // 42
|
* await msg.args()[1].jsonValue() // 42
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user