3
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 5 years have passed since last update.

RubyでSeleniumを動かすときにテストの実行速度を設定する方法

3
Posted at

https://groups.google.com/forum/#!topic/ruby-capybara/3gi4acdkpQY より引用

  class SlowHttpClient < Selenium::WebDriver::Remote::Http::Default
    def request(*args)
      sleep 0.3
      super
    end
  end

  driver = Selenium::WebDriver.for :firefox, :http_client => SlowHttpClient.new

これで早くしたりゆっくり動かしたり出来るようになった。HAPPY!

3
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
3
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?