Skip to content

Update WebDriver.php: Minor #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2024
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
Loading