Reputation: 31
I'm scraping a web site with forms. The first page has a form that posts to the second page. The second page has a form which when submitted it opens a popup window (using JS). That popup window has a form which when submitted returns to the second page but modified.
$crawler = $this->client->request('GET', $url);
$form = $crawler->filter('#Form')->form();
$second = $this->client->submit($form);
$form2 = $second->filter('#Form')->form();
$third = $this->client->submit($form2);
The question is how can I get the popup data that appears when I submit the second form?
Upvotes: 1
Views: 24