Skip to content

moveMouseOver Method phpdoc saying only css selector string but accept string/array css selector #70

Closed
@Neila142

Description

@Neila142

Hello,

Just used the module Webdriver module today and found than the phpdoc for moveMouseOver has for typehint

WebDriver.php: line 2804:
* @param string $cssOrXPath css or xpath of the web element

But the example just above state than we can use it with the array selector ["css" => ".checkout"]
I've tried running it with the array selector and it's working.

But my usage of $I->moveMouseOver(["css" => ".checkout") is marked as an phpstan error and could create other issue with other analysis tool.

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