function Execute::async
Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. (asynchronous)
Parameters
array{script: string, args: array} $jsonScript:
Return value
mixed
1 method overrides Execute::async()
- LegacyExecute::async in vendor/
lullabot/ php-webdriver/ lib/ WebDriver/ LegacyExecute.php - Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. (asynchronous)
File
-
vendor/
lullabot/ php-webdriver/ lib/ WebDriver/ Execute.php, line 36
Class
- Execute
- WebDriver\Execute class
Namespace
WebDriverCode
public function async(array $jsonScript) {
$jsonScript['args'] = $this->serializeArguments($jsonScript['args']);
$result = $this->curl('POST', '/async', $jsonScript);
return $this->unserializeResult($result['value']);
}