private function BrowserKitDriver::getCrawler in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php \Behat\Mink\Driver\BrowserKitDriver::getCrawler()
Returns crawler instance (got from client).
Return value
Throws
File
- vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php, line 845
Class
- BrowserKitDriver
- Symfony2 BrowserKit driver.
Namespace
Behat\Mink\DriverCode
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;
}