library/MinkWrapper.php
public function getAttribute($sSelectorWithAttribute)
    {
        $mAttribute = null;

        $sSelectorAttributeSeparator = '@';
        $iSeparatorPosition = strrpos($sSelectorWithAttribute, $sSelectorAttributeSeparator);
        if ($iSeparatorPosition !== false) {
            $sSelector = $this->_getSelectorWithoutAttribute($sSelectorWithAttribute, $iSeparatorPosition);
            $sAttributeName = $this->_getAttributeWithoutSelector($sSelectorWithAttribute, $iSeparatorPosition);

            $oElement = $this->getElementLazy($sSelector);
            $mAttribute = $oElement->getAttribute($sAttributeName);
        }

        return $mAttribute;
    }
public function getAttribute($sSelectorWithAttribute)
    {
        $mAttribute = null;

        $sSelectorAttributeSeparator = '@';
        $iSeparatorPosition = strrpos($sSelectorWithAttribute, $sSelectorAttributeSeparator);
        if ($iSeparatorPosition !== false) {
            $sSelector = $this->_getSelectorWithoutAttribute($sSelectorWithAttribute, $iSeparatorPosition);
            $sAttributeName = $this->_getAttributeWithoutSelector($sSelectorWithAttribute, $iSeparatorPosition);

            $oElement = $this->getElementLazy($sSelector);
            $mAttribute = $oElement->getAttribute($sAttributeName);
        }

        return $mAttribute;
    }
public function getAttribute ( $ sSelectorWithAttribute ) { $ mAttribute = null ; $ sSelectorAttributeSeparator = '@' ; $ iSeparatorPosition = strrpos ( $ sSelectorWithAttribute , $ sSelectorAttributeSeparator ) ; if ( $ iSeparatorPosition !== false ) { $ sSelector = $ this -> _getSelectorWithoutAttribute ( $ sSelectorWithAttribute , $ iSeparatorPosition ) ; $ sAttributeName = $ this -> _getAttributeWithoutSelector ( $ sSelectorWithAttribute , $ iSeparatorPosition ) ; $ oElement = $ this -> getElementLazy ( $ sSelector ) ; $ mAttribute = $ oElement -> getAttribute ( $ sAttributeName ) ; } return $ mAttribute ; }
Get attribute from selector with attribute

@param string $sSelectorWithAttribute

@return mixed|null
Get attribute from selector with attribute