public function getCrawler()
    {
        $crawler = new Crawler(null, $this->lastRequest->getBaseUri());
        $crawler->addContent($this->lastResponse->getContent(), $this->lastResponse->getHeader('Content-Type'));

        return $crawler;
    }
public function getCrawler()
    {
        $crawler = new Crawler(null, $this->lastRequest->getBaseUri());
        $crawler->addContent($this->lastResponse->getContent(), $this->lastResponse->getHeader('Content-Type'));

        return $crawler;
    }
public function getCrawler ( ) { $ crawler = new Crawler ( null , $ this -> lastRequest -> getBaseUri ( ) ) ; $ crawler -> addContent ( $ this -> lastResponse -> getContent ( ) , $ this -> lastResponse -> getHeader ( 'Content-Type' ) ) ; return $ crawler ; }
Returns the DOM crawler which can be used to interact with the web page
structure, submit forms, click links or fetch specific parts of the
website's contents.

The returned DOM crawler is bound to the response of the last executed
request.

@return \Symfony\Component\DomCrawler\Crawler
@api
Returns the DOM crawler which can be used to interact with the web page structure submit forms click links or fetch specific parts of the website s contents .