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

merge-requests/1492/head
catch 2021-12-07 14:55:46 +00:00
parent 401a725ed4
commit 640db5381a
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) {