public function clickLink($locator)
    {
        $link = $this->findLink($locator);

        if (null === $link) {
            throw new ElementNotFoundException($this->getDriver(), 'link', 'id|title|alt|text', $locator);
        }

        $link->click();
    }
public function clickLink($locator)
    {
        $link = $this->findLink($locator);

        if (null === $link) {
            throw new ElementNotFoundException($this->getDriver(), 'link', 'id|title|alt|text', $locator);
        }

        $link->click();
    }
public function clickLink ( $ locator ) { $ link = $ this -> findLink ( $ locator ) ; if ( null === $ link ) { throw new ElementNotFoundException ( $ this -> getDriver ( ) , 'link' , 'id|title|alt|text' , $ locator ) ; } $ link -> click ( ) ; }
Clicks link with specified locator.

@param string $locator link id, title, text or image alt

@throws ElementNotFoundException
Clicks link with specified locator .