Sha256: 7672e68c0bbe26793fb35556233a27d9efd1f0ea476e7a2396ab56519775ece5
Contents?: true
Size: 991 Bytes
Versions: 61
Compression:
Stored size: 991 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 # # Sets the amount of time to wait for a page load to complete before throwing an error. # If the timeout is negative, page loads can be indefinite. # def page_load=(seconds) @bridge.setTimeout 'page load', Integer(seconds * 1000) end end # Timeouts end # WebDriver end # Selenium
Version data entries
61 entries across 61 versions & 4 rubygems