diff --git a/src/Concerns/WaitsForElements.php b/src/Concerns/WaitsForElements.php index d79c2bcd3..a94e9b0b6 100644 --- a/src/Concerns/WaitsForElements.php +++ b/src/Concerns/WaitsForElements.php @@ -335,13 +335,14 @@ public function waitForReload($callback = null, $seconds = null) * Click an element and wait for the page to reload. * * @param string|null $selector + * @param int|null $seconds * @return $this */ - public function clickAndWaitForReload($selector = null) + public function clickAndWaitForReload($selector = null, $seconds = null) { return $this->waitForReload(function ($browser) use ($selector) { $browser->click($selector); - }); + }, $seconds); } /**