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

Breadcrumb

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

function Execute::unserializeResult

Unserialize result (containing web elements and/or shadow roots)

Parameters

mixed $result:

Return value

mixed

4 calls to Execute::unserializeResult()
Execute::async in vendor/lullabot/php-webdriver/lib/WebDriver/Execute.php
Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. (asynchronous)
Execute::sync in vendor/lullabot/php-webdriver/lib/WebDriver/Execute.php
Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. (synchronous)
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)
LegacyExecute::sync 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. (synchronous)

File

vendor/lullabot/php-webdriver/lib/WebDriver/Execute.php, line 94

Class

Execute
WebDriver\Execute class

Namespace

WebDriver

Code

protected function unserializeResult($result) {
    $element = is_array($result) ? $this->makeElement($result) : null;
    if ($element !== null) {
        return $element;
    }
    if (is_array($result)) {
        foreach ($result as $key => $value) {
            $result[$key] = $this->unserializeResult($value);
        }
    }
    return $result;
}
RSS feed
Powered by Drupal