Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit a9325dd

Browse files
author
whhone
committed
allow retruning array in RemoteWebDriver::executeScript()
1 parent 81cadae commit a9325dd

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/remote/RemoteWebDriver.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,7 @@ public function executeScript($script, array $arguments = array()) {
179179

180180
$params = array('script' => $script, 'args' => $args);
181181
$response = $this->executor->execute('executeScript', $params);
182-
183-
if (is_array($response)) {
184-
// TODO: Handle this
185-
throw new Exception(
186-
"executeScript with collection response is unimplemented"
187-
);
188-
} else {
189-
return $response;
190-
}
182+
return $response;
191183
}
192184

193185
/**

0 commit comments

Comments
 (0)