src/Concerns/WaitsForElements.php
public function waitUntilMissing($selector, $seconds = null)
    {
        $message = $this->formatTimeOutMessage('Waited %s seconds for removal of selector', $selector);

        return $this->waitUsing($seconds, 100, function () use ($selector) {
            try {
                $missing = ! $this->resolver->findOrFail($selector)->isDisplayed();
            } catch (NoSuchElementException $e) {
                $missing = true;
            }

            return $missing;
        }, $message);
    }
public function waitUntilMissing($selector, $seconds = null)
    {
        $message = $this->formatTimeOutMessage('Waited %s seconds for removal of selector', $selector);

        return $this->waitUsing($seconds, 100, function () use ($selector) {
            try {
                $missing = ! $this->resolver->findOrFail($selector)->isDisplayed();
            } catch (NoSuchElementException $e) {
                $missing = true;
            }

            return $missing;
        }, $message);
    }
public function waitUntilMissing ( $ selector , $ seconds = null ) { $ message = $ this -> formatTimeOutMessage ( 'Waited %s seconds for removal of selector' , $ selector ) ; return $ this -> waitUsing ( $ seconds , 100 , function ( ) use ( $ selector ) { try { $ missing = ! $ this -> resolver -> findOrFail ( $ selector ) -> isDisplayed ( ) ; } catch ( NoSuchElementException $ e ) { $ missing = true ; } return $ missing ; } , $ message ) ; }
Wait for the given selector to be removed.

@param  string  $selector
@param  int  $seconds
@return $this
@throws \Facebook\WebDriver\Exception\TimeOutException
Wait for the given selector to be removed .