E2E\WebDriverShortcuts::seeText PHP Method

seeText() public method

Wait and validate a text to be visible in an element.
public seeText ( $text, $selector )
$text
$selector string The element's CSS selector.
    public function seeText($text, $selector)
    {
        $this->waitUntil(WebDriverExpectedCondition::textToBePresentInElement(WebDriverBy::cssSelector($selector), $text));
        return $this;
    }