6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Puppeteerの`waitFor`は`waitForTimeout`に書き換えた方がよいみたい(v5.3.0)

Last updated at Posted at 2020-09-18

概要

警告が出たので調査

waitFor is deprecated and will be removed in a future release. See https://github.com/puppeteer/puppeteer/issues/6214 for details and how to migrate your code.

結論

-  await page.waitFor(5000)
+  await page.waitForTimeout(5000)

補足

TypeScriptを利用している場合は @types/puppeteer も最新にすること。

参考

詳しく書いてあるので詳細はGitHubのページを参照してください

6
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?