Module: WebDriverScriptAdapter::Defaults
- Defined in:
- lib/webdriver_script_adapter/execute_async_script_adapter.rb
Class Method Summary collapse
- .async_results_identifier ⇒ Object
-
.max_wait_time ⇒ Object
set max_wait_time based on type of webdriver.
-
.wait_interval ⇒ Object
set wait interval based on webdriver.
Class Method Details
.async_results_identifier ⇒ Object
25 26 27 |
# File 'lib/webdriver_script_adapter/execute_async_script_adapter.rb', line 25 def async_results_identifier -> { ::SecureRandom.uuid } end |
.max_wait_time ⇒ Object
set max_wait_time based on type of webdriver
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/webdriver_script_adapter/execute_async_script_adapter.rb', line 30 def max_wait_time if defined? ::Capybara if ::Capybara.respond_to? :default_max_wait_time ::Capybara.default_max_wait_time else ::Capybara.default_wait_time end elsif defined? ::Selenium::WebDriver::Wait::DEFAULT_TIMEOUT ::Selenium::WebDriver::Wait::DEFAULT_TIMEOUT else 3 end end |
.wait_interval ⇒ Object
set wait interval based on webdriver
45 46 47 48 49 50 51 |
# File 'lib/webdriver_script_adapter/execute_async_script_adapter.rb', line 45 def wait_interval if defined? ::Selenium::WebDriver::Wait::DEFAULT_INTERVAL ::Selenium::WebDriver::Wait::DEFAULT_INTERVAL else 0.1 end end |