Skip to content

Commit

Permalink
Fixes to function signatures (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
justafish authored Dec 14, 2023
1 parent 0df6c20 commit 950468d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/WebDriver/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion lib/WebDriver/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion lib/WebDriver/Window.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 950468d

Please sign in to comment.