Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/Codeception/Module/WebDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
* <?php
* use \Facebook\WebDriver\WebDriverElement
* $I->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
Expand Down