GetAttribute - web automation method

Extract the value of the specified attribute of an IHTMLElement inside a web page.

Applies to:
Element
  var attr = elementObj.GetAttribute(attrName);
Arguments:
Remarks:
If the attribute is not present, this method returns empty string. The attribute name is case insensitive. When retrieving the CLASS attribute using this method, set the attrName to be "className", which is the corresponding Dynamic HTML (DHTML) property.
Example:

None.
		
See also:
Element | nativeElement | RemoveAttribute | SetAttribute

© 2017 CodeCentrix Software. All rights reserved.