Method: Protractor#executeAsyncScript_
- Defined in:
- lib/angular_webdriver/protractor/protractor.rb
#executeAsyncScript_(script, description, *args) ⇒ Object
The same as webdriver.WebDriver.prototype.executeAsyncScript, but with a customized description for debugging.
@private
@param script [String] The javascript to execute.
@param description [String] A description of the command for debugging.
@param args [var_args] The arguments to pass to the script.
@return The scripts return value.
410 411 412 413 414 415 |
# File 'lib/angular_webdriver/protractor/protractor.rb', line 410 def executeAsyncScript_ script, description, *args # add description as comment to script so it shows up in server logs script = _js_comment(description) + script driver.execute_async_script script, *args end |