DomElement.
Returns the names of all DOM attributes that are available for this element. DOM elements can dynamically add any attribute. For a list of defined DOM attributes, refer to the WC3 documentation for the Document Object Model HTML.
This functionality is supported only if you are using the Open Agent.
list = GetDomAttributeList([specifiedOnly])
Variable | Description |
---|---|
list | The names of the available attributes. LIST OF STRING. |
specifiedOnly | Optional: Return only the names of the specified attributes. When you are using Google Chrome or Internet Explorer 9 or later, this parameter is always set to true. BOOLEAN. |
// print all dom attributes of the ok button LIST OF STRING lsAttributes = Desktop.Find(".//DomButton[@caption='OK']").GetDomAttributeList() STRING strAttribute for each strAttribute in lsAttributes Print(strAttribute)