thebick
5 years agoOccasional Contributor
getting XML DOM tagName fails
Microsoft XML DOM Properties page shows "tagName" as a property. But when I try to use it with
# Python Log.Message("Node tag: " + mynode.tagName)
I get "AttributeError: The object does not support this property or method"
I can use "nodeName", "nodeValue", "xml", "text", or various other properties with no problem.
Indeed, the "xml" property shows the tag name and the value.
But how do I get just the tagName? Why doesn't it work, or why is it not supported?
Tried this:
function testTagName() { let a = Sys.Browser('*').Page("https://community.smartbear.com/t5/TestComplete-General-Discussions/getting-XML-DOM-tagName-fails/m-p/199506").Panel(1).Panel(0).Panel(0).Panel(0).Panel(0).Panel(0); Log.Message("TagName = ", a.tagName); }
And it worked, give me DIV
So by TC it's ok.
Do you load an external XML ? with which method and which driver ?