Skip to content

Documentation for the $page->click() method say it accepts options. #1518

@actengage

Description

@actengage

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions