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
WebDriverCode
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;
}