LoginSignup
20
20

More than 5 years have passed since last update.

webdriverのタイムアウトを設定する

Posted at
require "selenium-webdriver"

client = Selenium::WebDriver::Remote::Http::Default.new
client.timeout = 120
driver = Selenium::WebDriver.for :chrome, :http_client => client

これで120秒後にタイムアウトする。

ちなみに設定しないと60秒でタイムアウトになってしまうので
長い処理が必要な時は必須。

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