Skip to content

Commit 397c2f0

Browse files
Update WebDriver.php: Minor (#131)
1 parent 68bd128 commit 397c2f0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Codeception/Module/WebDriver.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2556,16 +2556,17 @@ public function submitForm($selector, array $params, $button = null): void
25562556
}
25572557

25582558
/**
2559-
* Waits up to $timeout seconds for the given element to change.
2559+
* Waits up to `$timeout` seconds for the given element to change.
25602560
* Element "change" is determined by a callback function which is called repeatedly
25612561
* until the return value evaluates to true.
25622562
*
25632563
* ``` php
25642564
* <?php
2565-
* use \Facebook\WebDriver\WebDriverElement
2566-
* $I->waitForElementChange('#menu', function(WebDriverElement $el) {
2567-
* return $el->isDisplayed();
2568-
* }, 100);
2565+
* use Facebook\WebDriver\WebDriverElement;
2566+
*
2567+
* $I->waitForElementChange('#menu', function(WebDriverElement $element) {
2568+
* return $element->isDisplayed();
2569+
* }, 5);
25692570
* ```
25702571
*
25712572
* @param string|array|WebDriverBy $element

0 commit comments

Comments
 (0)