/** * {@inheritdoc} */ public function executeScript($script) { if (preg_match('/^function[\\s\\(]/', $script)) { $script = preg_replace('/;$/', '', $script); $script = '(' . $script . ')'; } $this->browser->runScript($script); }
/** * @see Behat\Mink\Driver\DriverInterface::executeScript() */ public function executeScript($script) { $this->browser->runScript($script); }