ElementHasAttributeById
Interface AntViewDocument
Type: Method
Parameters: String Id String AttrName
Returns: nothing
Inspects if the html element identified by Id has an attribute identified by AttrName.
Note that the id is case sensitive and must match the case of the html element.
As the request is run asynchronously, the existence of the attribute is returned in the OnElementHasAttributeById event.
There's also a synchronous alternative ElementHasAttributeByIdSync that wraps the above into one call.
See also: ElementRemoveAttributeById, ElementToggleAttributeById
Example:
Introduced in AntView release 1.1.354
AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024