public function clickLink($label, $index = 0)
    {
        $url = $this->getLink($label, $index);
        if ($url === false) {
            return false;
        }

        $this->load($url, new SimpleGetEncoding());

        return (bool) $this->getContent();
    }
public function clickLink($label, $index = 0)
    {
        $url = $this->getLink($label, $index);
        if ($url === false) {
            return false;
        }

        $this->load($url, new SimpleGetEncoding());

        return (bool) $this->getContent();
    }
public function clickLink ( $ label , $ index = 0 ) { $ url = $ this -> getLink ( $ label , $ index ) ; if ( $ url === false ) { return false ; } $ this -> load ( $ url , new SimpleGetEncoding ( ) ) ; return ( bool ) $ this -> getContent ( ) ; }
Follows a link by label.
Will click the first link found with this link text by default,
or a later one, if an index is given.
The match ignores case and white space issues.

@param string $label     Text between the anchor tags.
@param int $index    Link position counting from zero.

@return boolean   True on success.
Follows a link by label . Will click the first link found with this link text by default or a later one if an index is given . The match ignores case and white space issues .