Skip to content

[Question] How to define element with regex ? #12308

@amrsa1

Description

@amrsa1

how to define an element that containing regex, where (.+){1} are numbers

page.locator('text=(.+){1} items for sale in x')

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