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

        return $this->waitUsing($seconds, 100, function () use ($selector) {
            return $this->resolver->findOrFail($selector)->isDisplayed();
        }, $message);
    }
public function waitFor($selector, $seconds = null)
    {
        $message = $this->formatTimeOutMessage('Waited %s seconds for selector', $selector);

        return $this->waitUsing($seconds, 100, function () use ($selector) {
            return $this->resolver->findOrFail($selector)->isDisplayed();
        }, $message);
    }
public function waitFor ( $ selector , $ seconds = null ) { $ message = $ this -> formatTimeOutMessage ( 'Waited %s seconds for selector' , $ selector ) ; return $ this -> waitUsing ( $ seconds , 100 , function ( ) use ( $ selector ) { return $ this -> resolver -> findOrFail ( $ selector ) -> isDisplayed ( ) ; } , $ message ) ; }
Wait for the given selector to be visible.

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