diff --git a/lib/WebDriver/Element.php b/lib/WebDriver/Element.php index d4ecddf..fd1fd21 100644 --- a/lib/WebDriver/Element.php +++ b/lib/WebDriver/Element.php @@ -29,7 +29,7 @@ * @method array property($propertyName) Get element property. * @method array rect() Get element rect. * @method array screenshot() Take element screenshot. - * @method array selected() Is element selected? + * @method boolean selected() Is element selected? * @method array size() Determine an element's size in pixels. * @method void submit() Submit a FORM element. * @method string text() Returns the visible text for the element. diff --git a/lib/WebDriver/Session.php b/lib/WebDriver/Session.php index 4275615..4ab60a5 100644 --- a/lib/WebDriver/Session.php +++ b/lib/WebDriver/Session.php @@ -32,11 +32,13 @@ * @method void dismiss_alert() Dismisses the currently displayed alert dialog. * @method void doubleclick() Double-clicks at the current mouse coordinates (set by moveto). * @method array execute_sql($jsonQuery) Execute SQL. - * @method array file($jsonFile) Upload file. + * @method array execute_async($jsonScript) Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. + * @method string file($jsonFile) Upload file. * @method void forward() Navigates forward in the browser history, if possible. * @method void keys($jsonKeys) Send a sequence of key strokes to the active element. * @method array getLocation() Get the current geo location. * @method void postLocation($jsonCoordinates) Set the current geo location. + * @method void moveto($jsonElementCoordinates) Move the mouse by an offset of the specified element. * @method string getOrientation() Get the current browser orientation. * @method void postOrientation($jsonOrientation) Set the current browser orientation. * @method array print() Print page. @@ -93,6 +95,7 @@ protected function methods() 'execute_sql' => array('POST'), 'keys' => array('POST'), 'location' => array('GET', 'POST'), + 'moveto' => array('POST'), 'orientation' => array('GET', 'POST'), 'window_handle' => array('GET'), // see also getWindowHandle() 'window_handles' => array('GET'), diff --git a/lib/WebDriver/Window.php b/lib/WebDriver/Window.php index 411f15c..b6d95a8 100644 --- a/lib/WebDriver/Window.php +++ b/lib/WebDriver/Window.php @@ -23,7 +23,7 @@ * @method array getPosition() Get position of the window. * @method void postPosition($json) Change position of the window. * @method array getRect() Get window rect. - * @method array postRect() Set window rect. + * @method array postRect($json) Set window rect. */ class Window extends AbstractWebDriver {