library/MinkWrapper.php
public function getText($sSelector)
    {
        $oElement = $this->getElementLazy($sSelector);
        try {
            $sText = $oElement->getText();
        } catch (Exception $e) {
            sleep(1);
            $sText = $oElement->getText();
        }
        return $sText;
    }
public function getText($sSelector)
    {
        $oElement = $this->getElementLazy($sSelector);
        try {
            $sText = $oElement->getText();
        } catch (Exception $e) {
            sleep(1);
            $sText = $oElement->getText();
        }
        return $sText;
    }
public function getText ( $ sSelector ) { $ oElement = $ this -> getElementLazy ( $ sSelector ) ; try { $ sText = $ oElement -> getText ( ) ; } catch ( Exception $ e ) { sleep ( 1 ) ; $ sText = $ oElement -> getText ( ) ; } return $ sText ; }
Overrides original method - waits for element before checking for text

@param string $sSelector text to be searched

@return string
Overrides original method - waits for element before checking for text