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

        try {
            $missing = ! $this->resolver->findOrFail($selector)->isDisplayed();
        } catch (NoSuchElementException $e) {
            $missing = true;
        }

        PHPUnit::assertTrue($missing, "Saw unexpected element [{$fullSelector}].");

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

        try {
            $missing = ! $this->resolver->findOrFail($selector)->isDisplayed();
        } catch (NoSuchElementException $e) {
            $missing = true;
        }

        PHPUnit::assertTrue($missing, "Saw unexpected element [{$fullSelector}].");

        return $this;
    }
public function assertMissing ( $ selector ) { $ fullSelector = $ this -> resolver -> format ( $ selector ) ; try { $ missing = ! $ this -> resolver -> findOrFail ( $ selector ) -> isDisplayed ( ) ; } catch ( NoSuchElementException $ e ) { $ missing = true ; } PHPUnit :: assertTrue ( $ missing , "Saw unexpected element [{$fullSelector}]." ) ; return $ this ; }
Assert that the element with the given selector is not on the page.

@param  string  $selector
@return $this
Assert that the element with the given selector is not on the page .