Forum Discussion

thebick's avatar
thebick
Occasional Contributor
5 years ago

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...
  • BenoitB's avatar
    5 years ago

    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 ?