Sha256: 2956aced8ff61e9e5a9e4275b7c61f5fcc7198b03617f237a0345ad51e647d9d

Contents?: true

Size: 691 Bytes

Versions: 6

Compression:

Stored size: 691 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 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 seconds * 1000
      end

    end # Timeouts
  end # WebDriver
end # Selenium

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
selenium-webdriver-0.2.0 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-0.2.0.dev lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-0.1.4 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-0.1.3 lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-0.1.3.dev lib/selenium/webdriver/common/timeouts.rb
selenium-webdriver-0.1.2 lib/selenium/webdriver/common/timeouts.rb