code: public function clickLink($link, $to = '')
      {
          foreach ($this->getEmailMessages($to) as $message) {
              if (!isset($message['links'][$link])) {
                  $link = array_search($link, $message['links']);
              }
  
              if (isset($message['links'][$link])) {
                  $this->visitPath($message['links'][$link]);
              }
          }
      }
docs: @param string $link
  Link text or value of "href" attribute.
  @param string $to
  Try to find in specific email.
  
  @Given /^(?:|I )click on link "([^"]*)" in email(?:| that was sent on "([^"]*)")$/