From 8201e53c0f8a8fac6ebe32bf2ebfdc43946c20eb Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Tue, 11 Jun 2024 17:26:26 +0200 Subject: [PATCH] Update WebDriver.php: Minor --- src/Codeception/Module/WebDriver.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Codeception/Module/WebDriver.php b/src/Codeception/Module/WebDriver.php index 2c5b578..0921b36 100644 --- a/src/Codeception/Module/WebDriver.php +++ b/src/Codeception/Module/WebDriver.php @@ -2556,16 +2556,17 @@ public function submitForm($selector, array $params, $button = null): void } /** - * Waits up to $timeout seconds for the given element to change. + * Waits up to `$timeout` seconds for the given element to change. * Element "change" is determined by a callback function which is called repeatedly * until the return value evaluates to true. * * ``` php * waitForElementChange('#menu', function(WebDriverElement $el) { - * return $el->isDisplayed(); - * }, 100); + * use Facebook\WebDriver\WebDriverElement; + * + * $I->waitForElementChange('#menu', function(WebDriverElement $element) { + * return $element->isDisplayed(); + * }, 5); * ``` * * @param string|array|WebDriverBy $element