Skip to content
Snippets Groups Projects
Commit 640db538 authored by catch's avatar catch
Browse files

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

parent 401a725e
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,7 @@ public function waitForElementVisible($selector, $locator, $timeout = 10000) {
}
/**
* 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 @@ public function waitForElementVisible($selector, $locator, $timeout = 10000) {
* (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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment