You are here

public function JavascriptTrait::evaluateScript in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/jcalderonzumba/mink-phantomjs-driver/src/JavascriptTrait.php \Zumba\Mink\Driver\JavascriptTrait::evaluateScript()

Evaluates a script and returns the result

Parameters

string $script:

Return value

mixed

File

vendor/jcalderonzumba/mink-phantomjs-driver/src/JavascriptTrait.php, line 26

Class

JavascriptTrait
Class JavascriptTrait @package Zumba\Mink\Driver

Namespace

Zumba\Mink\Driver

Code

public function evaluateScript($script) {
  return $this->browser
    ->evaluate($script);
}