You are here

public function Client::click in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Client.php \Symfony\Component\BrowserKit\Client::click()

Clicks on a given link.

Parameters

Link $link A Link instance:

Return value

Crawler

File

vendor/symfony/browser-kit/Client.php, line 222

Class

Client
Client simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

public function click(Link $link) {
  if ($link instanceof Form) {
    return $this
      ->submit($link);
  }
  return $this
    ->request($link
    ->getMethod(), $link
    ->getUri());
}