1
1

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.

【SeleniumBasic】Chromeタイムアウトを変更する

Posted at

この記事は、Excel+SeleniumBasic+GoogleChromeでスクライピングしている方に向けた記事です。

##driver.Timeouts.PageLoadの値=タイムアウト(ミリ秒)

driver.Timeouts.PageLoadの値を変更すると
任意のタイムアウト(ミリ秒)となる。

Dim driver As New ChromeDriver
URL = "任意のURL"
driver.Timeouts.PageLoad = 10000   '10秒
driver.Get URL

PageLoadを-1にするとタイムアウトなしとなる

driver.Timeouts.PageLoad = -1    '-1にするとタイムアウトなし

デフォルトは60000(60秒)である

driver.Timeouts.PageLoad = 60000    '60秒(デフォルト)

Chromeの読み込みタイムアウトを変更する方法についての記事は以上です。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?