Method: Selenium::WebDriver::Timeouts#script=
- Defined in:
- lib/selenium/webdriver/common/timeouts.rb
permalink #script=(seconds) ⇒ Object Also known as: script_timeout=
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.
59 60 61 |
# File 'lib/selenium/webdriver/common/timeouts.rb', line 59 def script=(seconds) @bridge.timeouts = {'script' => Integer(seconds * 1000)} end |