Skip to content

[Feature] Add locator.hasAttribute() #16270

@azad-derakhshani-GS

Description

@azad-derakhshani-GS

There is this function element.hasAttribute but apparently it doesn't exist in the PW framework.
This would be very useful to have as there are cases where we need to check if a certain attribute is present (not its actual value as it doesn't have a value).

So it would be great if we could add locator.HasAttribute() similar to the already existing locator.getAttribute().

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions