Sha256: 58da15b782034b5d66fa66b6a0dc9bbc20ba82db1f2fd6d48fad7fc616f30748

Contents?: true

Size: 709 Bytes

Versions: 32

Compression:

Stored size: 709 Bytes

Contents

module Selenium
  module WebDriver
    class Timeouts

      def initialize(bridge)
        @bridge = bridge
      end

      #
      # Set the amount of time the driver should wait when searching for elements.
      #

      def implicit_wait=(seconds)
        @bridge.setImplicitWaitTimeout Integer(seconds * 1000)
      end

      #
      # Sets the amount of time to wait for an asynchronous script to finish
      # execution before throwing an error. If the timeout is negative, then the
      # script will be allowed to run indefinitely.
      #

      def script_timeout=(seconds)
        @bridge.setScriptTimeout Integer(seconds * 1000)
      end

    end # Timeouts
  end # WebDriver
end # Selenium

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
selenium-webdriver-2.19.0 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.19.0.rc2 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.19.0.rc1 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.18.0 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.18.0.rc3 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.18.0.rc2 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.18.0.rc1 lib/selenium/webdriver/common/timeouts.rb
bbc-selenium-webdriver-1.17.0 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.17.0 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.16.0 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.15.0 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.14.0 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.13.0 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.12.2 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.12.1 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.12.0 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.10.0 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.9.1 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.9.0 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-2.8.0 lib/selenium/webdriver/common/timeouts.rb