Skip to content

Commit 24fbd20

Browse files
committed
Re-enable "file" method; fix typos
1 parent a109df9 commit 24fbd20

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/WebDriver/Session.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ protected function methods()
9797
'execute_sql' => array('POST'),
9898
'location' => array('GET', 'POST'),
9999
'browser_connection' => array('GET', 'POST'),
100+
101+
// specific to Java SeleniumServer
102+
'file' => array('POST'),
100103
);
101104
}
102105

@@ -110,9 +113,6 @@ protected function obsoleteMethods()
110113
'speed' => array('GET', 'POST'),
111114
'alert' => array('GET'),
112115
'visible' => array('GET', 'POST'),
113-
114-
// specific to Java SeleniumServer
115-
'file' => array('POST'),
116116
);
117117
}
118118

@@ -414,12 +414,12 @@ public function log()
414414
if (is_string($arg)) {
415415
$arg = array(
416416
'type' => $arg,
417-
)
417+
);
418418
}
419419

420420
$result = $this->curl('POST', '/log', $arg);
421421

422-
eeturn $result['value'];
422+
return $result['value'];
423423
}
424424

425425
// chaining

0 commit comments

Comments
 (0)