Method: Selenium::WebDriver::Driver#execute_async_script
- Defined in:
- lib/selenium/webdriver/common/driver.rb
permalink #execute_async_script(script, *args) ⇒ WebDriver::Element, ...
Execute an asynchronous piece of JavaScript in the context of the currently selected frame or window. Unlike executing execute_script (synchronous JavaScript), scripts executed with this method must explicitly signal they are finished by invoking the provided callback. This callback is always injected into the executed function as the last argument.
247 248 249 |
# File 'lib/selenium/webdriver/common/driver.rb', line 247 def execute_async_script(script, *args) bridge.execute_async_script(script, *args) end |