Skip to content

Commit 6a4ef23

Browse files
committed
Fix execute_async()
1 parent f69b67e commit 6a4ef23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/WebDriver/Session.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ public function execute()
529529
*
530530
* @return mixed
531531
*/
532-
public function execute_async()
532+
public function executeAsync()
533533
{
534534
$execute = $this->w3c ? new Execute($this->url . '/execute') : new LegacyExecute($this->url);
535535
$result = $execute->async(func_get_arg(0));
@@ -551,9 +551,10 @@ protected function getIdentifierPath($identifier)
551551
public function __call($name, $arguments)
552552
{
553553
$map = [
554+
'application_cache' => 'applicationCache',
555+
'execute_async' => 'executeAsync',
554556
'local_storage' => 'localStorage',
555557
'session_storage' => 'sessionStorage',
556-
'application_cache' => 'applicationCache',
557558
];
558559

559560
if (array_key_exists($name, $map)) {

0 commit comments

Comments
 (0)