Skip to content

[Feature] add a timeout parameter to locator.count() #9224

@TimeInvestor

Description

@TimeInvestor

For now, locator.count() returns immediately. If the element(s) take time to load, then the count is not accurate.
It would be nice if users could specify a wait time (or timeout) for the function.

Context: I am using if(locator.count()) > 0) to check element existence in my Page Object since there lacks a straightforward way to achive such goal.

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