From 3d4b37110bcf0c4774d6a1d0b88aeb821b0a4d4f Mon Sep 17 00:00:00 2001 From: Simon Neaves Date: Thu, 23 Jun 2016 12:58:51 +0100 Subject: [PATCH] set crawler after form submission In order to support onPage() after submitForm() or press() the crawler needs to be updated to use the DOM from the page returned from the form submission. --- src/Extensions/Goutte.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extensions/Goutte.php b/src/Extensions/Goutte.php index a5ed420..edc9c7f 100644 --- a/src/Extensions/Goutte.php +++ b/src/Extensions/Goutte.php @@ -48,7 +48,7 @@ public function baseUrl() */ public function submitForm($buttonText, $formData = null) { - $this->client()->submit( + $this->crawler = $this->client()->submit( $this->fillForm($buttonText, $formData) );