Lines Matching refs:text
238 * @param string $text The text to be presented in the element.
241 public static function textToBePresentInElement(WebDriverBy $by, $text) argument
243 return self::elementTextContains($by, $text);
251 * @param string $text The text to be presented in the element.
254 public static function elementTextContains(WebDriverBy $by, $text) argument
257 function (WebDriver $driver) use ($by, $text) {
261 return mb_strpos($element_text, $text) !== false;
274 * @param string $text The expected text of the element.
277 public static function elementTextIs(WebDriverBy $by, $text) argument
280 function (WebDriver $driver) use ($by, $text) {
282 return $driver->findElement($by)->getText() == $text;
316 * @param string $text The text to be presented in the element value.
319 public static function textToBePresentInElementValue(WebDriverBy $by, $text) argument
321 return self::elementValueContains($by, $text);
328 * @param string $text The text to be presented in the element value.
331 public static function elementValueContains(WebDriverBy $by, $text) argument
334 function (WebDriver $driver) use ($by, $text) {
338 return mb_strpos($element_text, $text) !== false;
391 * @param string $text The text of the element.
394 public static function invisibilityOfElementWithText(WebDriverBy $by, $text) argument
397 function (WebDriver $driver) use ($by, $text) {
399 return !($driver->findElement($by)->getText() === $text);