From a5821f78d793baa6bb7eafc858866e5395d6e7a5 Mon Sep 17 00:00:00 2001 From: Anthon Pang Date: Mon, 4 Dec 2023 09:12:56 -0500 Subject: [PATCH] Fix inconsistency POST function signatures --- lib/WebDriver/Alert.php | 2 +- lib/WebDriver/Session.php | 2 +- lib/WebDriver/Window.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/WebDriver/Alert.php b/lib/WebDriver/Alert.php index 796598b..3e446d4 100644 --- a/lib/WebDriver/Alert.php +++ b/lib/WebDriver/Alert.php @@ -19,7 +19,7 @@ * @method array accept() Accept alert. * @method array dismiss() Dismiss alert. * @method array getText() Get alert text. - * @method array postText() Send alert text. + * @method array postText($json) Send alert text. */ class Alert extends AbstractWebDriver { diff --git a/lib/WebDriver/Session.php b/lib/WebDriver/Session.php index 0f80300..2d7aa18 100644 --- a/lib/WebDriver/Session.php +++ b/lib/WebDriver/Session.php @@ -18,7 +18,7 @@ * * @method void accept_alert() Accepts the currently displayed alert dialog. * @method array deleteActions() Release actions. - * @method array postActions() Perform actions. + * @method array postActions($json) Perform actions. * @method string getAlert_text() Gets the text of the currently displayed JavaScript alert(), confirm(), or prompt() dialog. * @method void postAlert_text($jsonText) Sends keystrokes to a JavaScript prompt() dialog. * @method void back() Navigates backward in the browser history, if possible. diff --git a/lib/WebDriver/Window.php b/lib/WebDriver/Window.php index 8883c43..38efada 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 {