You are here

private function BrowserKitDriver::getCrawler in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php \Behat\Mink\Driver\BrowserKitDriver::getCrawler()

Returns crawler instance (got from client).

Return value

Crawler

Throws

DriverException

File

vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php, line 845

Class

BrowserKitDriver
Symfony2 BrowserKit driver.

Namespace

Behat\Mink\Driver

Code

private function getCrawler() {
  $crawler = $this->client
    ->getCrawler();
  if (null === $crawler) {
    throw new DriverException('Unable to access the response content before visiting a page');
  }
  return $crawler;
}