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
chore: regenerate types after non-clean merge Follow-up to #6379
Max Schmitt6da7e702325e
diff --git a/types/types.d.ts b/types/types.d.tsindex 23dfe075a6..61c9dc5f72 100644--- a/types/types.d.ts+++ b/types/types.d.ts@@ -380,11 +380,11 @@ export interface Page {* An example of handling `console` event:** ```js- * page.on('console', msg => {+ * page.on('console', async msg => {* for (let i = 0; i < msg.args().length; ++i)* console.log(`${i}: ${await msg.args()[i].jsonValue()}`);* });- * page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));+ * await page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));* ```**/@@ -554,11 +554,11 @@ export interface Page {* An example of handling `console` event:** ```js- * page.on('console', msg => {+ * page.on('console', async msg => {* for (let i = 0; i < msg.args().length; ++i)* console.log(`${i}: ${await msg.args()[i].jsonValue()}`);* });- * page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));+ * await page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));* ```**/@@ -728,11 +728,11 @@ export interface Page {* An example of handling `console` event:** ```js- * page.on('console', msg => {+ * page.on('console', async msg => {* for (let i = 0; i < msg.args().length; ++i)* console.log(`${i}: ${await msg.args()[i].jsonValue()}`);* });- * page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));+ * await page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));* ```**/@@ -902,11 +902,11 @@ export interface Page {* An example of handling `console` event:** ```js- * page.on('console', msg => {+ * page.on('console', async msg => {* for (let i = 0; i < msg.args().length; ++i)* console.log(`${i}: ${await msg.args()[i].jsonValue()}`);* });- * page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));+ * await page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));* ```**/@@ -1076,11 +1076,11 @@ export interface Page {* An example of handling `console` event:** ```js- * page.on('console', msg => {+ * page.on('console', async msg => {* for (let i = 0; i < msg.args().length; ++i)* console.log(`${i}: ${await msg.args()[i].jsonValue()}`);* });- * page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));+ * await page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));* ```**/@@ -2937,11 +2937,11 @@ export interface Page {* An example of handling `console` event:** ```js- * page.on('console', msg => {+ * page.on('console', async msg => {* for (let i = 0; i < msg.args().length; ++i)* console.log(`${i}: ${await msg.args()[i].jsonValue()}`);* });- * page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));+ * await page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));* ```**/