Issue #3251988 by vijaycs85, smccabe: Update return param of waitForText method

(cherry picked from commit 714c3414196f3fab7ae451b79cd30ff041e38366)
merge-requests/1501/head
catch 2021-12-07 14:55:46 +00:00
parent 51f7c3feb1
commit 10d7b48aba
1 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ JS;
}
/**
* Waits for the specified text and returns its element when available.
* Waits for the specified text and returns TRUE when it is available.
*
* @param string $text
* The text to wait for.
@ -131,7 +131,7 @@ JS;
* (Optional) Timeout in milliseconds, defaults to 10000.
*
* @return bool
* TRUE if not found, FALSE if found.
* TRUE if found, FALSE if not found.
*/
public function waitForText($text, $timeout = 10000) {
return (bool) $this->waitForHelper($timeout, function (Element $page) use ($text) {