Skip to content

Commit 3d4b371

Browse files
authored
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.
1 parent 4c2dbbc commit 3d4b371

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Extensions/Goutte.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function baseUrl()
4848
*/
4949
public function submitForm($buttonText, $formData = null)
5050
{
51-
$this->client()->submit(
51+
$this->crawler = $this->client()->submit(
5252
$this->fillForm($buttonText, $formData)
5353
);
5454

0 commit comments

Comments
 (0)