Forum Discussion

googleid_114358's avatar
googleid_114358
Contributor
12 years ago

HTML5 data-* properties unavailable

Hi. Our dev team started to use HTML5 data property and I would like to access those values with TestComplete. Here is the W3C description http://www.w3.org/TR/html5/dom.html#embedding-custom-n...
  • dganov's avatar
    12 years ago
    The w3.org page that you specified contains definition of dataset property, which is intended to access these data-attributes, but it does not work in IE. If you need cross-browser way then you should use getAttribute method of a web element of interest:



    Log.Message(THobj.getAttribute("data-property"))