Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
Update class-consolemessage.md (#22261)
任跃兵2b1a12113395
diff --git a/docs/src/api/class-consolemessage.md b/docs/src/api/class-consolemessage.mdindex 9fb1a9424c..1a230b24e3 100644--- a/docs/src/api/class-consolemessage.md+++ b/docs/src/api/class-consolemessage.md@@ -23,8 +23,8 @@ await page.evaluate(() => {const msg = await msgPromise;// Deconstruct console log arguments-await msg.args[0].jsonValue() // hello-await msg.args[1].jsonValue() // 42+await msg.args()[0].jsonValue() // hello+await msg.args()[1].jsonValue() // 42``````javadiff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.tsindex 2413995ec6..7278c3c0b2 100644--- a/packages/playwright-core/types/types.d.ts+++ b/packages/playwright-core/types/types.d.ts@@ -16146,8 +16146,8 @@ export interface BrowserServer {* const msg = await msgPromise;** // Deconstruct console log arguments- * await msg.args[0].jsonValue() // hello- * await msg.args[1].jsonValue() // 42+ * await msg.args()[0].jsonValue() // hello+ * await msg.args()[1].jsonValue() // 42* ```**/