await this._page.waitForLoadState('networkidle'); await this._page.waitForLoadState('load') await this._page.waitForLoadState('domcontentloaded') await this._page.waitForSelector('body'); await this._page.waitForTimeout(3000); await this._page.waitForNavigation({timeout: 1000, waitUntil: 'domcontentloaded'}).catch((err)=>{}); txt_a = await _page.content(); const cookies = await this._page.context().cookies(); 标签:cookies,playwright,nodejs,await,._,page,waitForLoadState From: https://www.cnblogs.com/angdh/p/17448495.html