library/MinkWrapper.php
public function getElementLazy($selector, $failOnError = true, $waitTime = 10)
    {
        $element = $this->getElement($selector, false);
        while (!$element && $waitTime > 0) {
            $element = $this->getElement($selector, false);
            $waitTime -= 0.5;
            usleep(500000);
        }

        return $element ?: $this->getElement($selector, $failOnError);
    }
public function getElementLazy($selector, $failOnError = true, $waitTime = 10)
    {
        $element = $this->getElement($selector, false);
        while (!$element && $waitTime > 0) {
            $element = $this->getElement($selector, false);
            $waitTime -= 0.5;
            usleep(500000);
        }

        return $element ?: $this->getElement($selector, $failOnError);
    }
public function getElementLazy ( $ selector , $ failOnError = true , $ waitTime = 10 ) { $ element = $ this -> getElement ( $ selector , false ) ; while ( ! $ element && $ waitTime > 0 ) { $ element = $ this -> getElement ( $ selector , false ) ; $ waitTime -= 0.5 ; usleep ( 500000 ) ; } return $ element ? : $ this -> getElement ( $ selector , $ failOnError ) ; }
Returns element. If element is not found, tries to wait for it.

@param           $selector
@param bool|true $failOnError
@param int       $waitTime

@return NodeElement|null
Returns element . If element is not found tries to wait for it .