src/Concerns/MakesAssertions.php
public function assertPresent($selector)
    {
        $fullSelector = $this->resolver->format($selector);

        PHPUnit::assertTrue(
            ! is_null($this->resolver->find($selector)),
            "Element [{$fullSelector}] is not present."
        );

        return $this;
    }
public function assertPresent($selector)
    {
        $fullSelector = $this->resolver->format($selector);

        PHPUnit::assertTrue(
            ! is_null($this->resolver->find($selector)),
            "Element [{$fullSelector}] is not present."
        );

        return $this;
    }
public function assertPresent ( $ selector ) { $ fullSelector = $ this -> resolver -> format ( $ selector ) ; PHPUnit :: assertTrue ( ! is_null ( $ this -> resolver -> find ( $ selector ) ) , "Element [{$fullSelector}] is not present." ) ; return $ this ; }
Assert that the element with the given selector is present in the DOM.

@param  string  $selector
@return $this
Assert that the element with the given selector is present in the DOM .