Skip to content

Commit 950468d

Browse files
authored
Fixes to function signatures (#8)
1 parent 0df6c20 commit 950468d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/WebDriver/Element.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* @method array property($propertyName) Get element property.
3030
* @method array rect() Get element rect.
3131
* @method array screenshot() Take element screenshot.
32-
* @method array selected() Is element selected?
32+
* @method boolean selected() Is element selected?
3333
* @method array size() Determine an element's size in pixels.
3434
* @method void submit() Submit a FORM element.
3535
* @method string text() Returns the visible text for the element.

lib/WebDriver/Session.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@
3232
* @method void dismiss_alert() Dismisses the currently displayed alert dialog.
3333
* @method void doubleclick() Double-clicks at the current mouse coordinates (set by moveto).
3434
* @method array execute_sql($jsonQuery) Execute SQL.
35-
* @method array file($jsonFile) Upload file.
35+
* @method array execute_async($jsonScript) Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame.
36+
* @method string file($jsonFile) Upload file.
3637
* @method void forward() Navigates forward in the browser history, if possible.
3738
* @method void keys($jsonKeys) Send a sequence of key strokes to the active element.
3839
* @method array getLocation() Get the current geo location.
3940
* @method void postLocation($jsonCoordinates) Set the current geo location.
41+
* @method void moveto($jsonElementCoordinates) Move the mouse by an offset of the specified element.
4042
* @method string getOrientation() Get the current browser orientation.
4143
* @method void postOrientation($jsonOrientation) Set the current browser orientation.
4244
* @method array print() Print page.
@@ -93,6 +95,7 @@ protected function methods()
9395
'execute_sql' => array('POST'),
9496
'keys' => array('POST'),
9597
'location' => array('GET', 'POST'),
98+
'moveto' => array('POST'),
9699
'orientation' => array('GET', 'POST'),
97100
'window_handle' => array('GET'), // see also getWindowHandle()
98101
'window_handles' => array('GET'),

lib/WebDriver/Window.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @method array getPosition() Get position of the window.
2424
* @method void postPosition($json) Change position of the window.
2525
* @method array getRect() Get window rect.
26-
* @method array postRect() Set window rect.
26+
* @method array postRect($json) Set window rect.
2727
*/
2828
class Window extends AbstractWebDriver
2929
{

0 commit comments

Comments
 (0)