Unless I am missing something here, the docs say this for the click method:
You may also pass options:
$page->click('#button', options: ['clickCount' => 2]);
But the method signature for click is the following:
/**
* Click the link with the given text.
*/
public function click(string $text): self
{
$this->guessLocator($text)->click();
return $this;
}
Are the docs or the method signature wrong? From everything I can tell, the click method doesn't accept an options argument.