Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Execute.php

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

WebDriver

Code

public function async(array $jsonScript) {
    $jsonScript['args'] = $this->serializeArguments($jsonScript['args']);
    $result = $this->curl('POST', '/async', $jsonScript);
    return $this->unserializeResult($result['value']);
}
RSS feed
Powered by Drupal