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().
There is this function
element.hasAttributebut 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 existinglocator.getAttribute().