Forum Discussion

tomh_1's avatar
tomh_1
Contributor
11 years ago

Object representation of jstree in Chrome is wrong. Works in IE. Any solutions?


Hi,

We're using TC 10.3 with Web tree model set to Tree.

With Chrome 37 the object browser shows a jstree within one of our applications as flat - no hierarchy.

The same tree in IE 10 is represented correctly (images attached)



Is anyone else encountering this?  Any solutions?



Thanks


  • Additional Information:

     - Get same results in Firefox as Chrome (no hierarchy)

     - Html representing offending hierarchy is below



     <div id="dbTrendTreeWrapper" style="height: 888px;">

     <div id="dbTrendTree" class="jstree jstree-1 jstree-default jstree-checkbox-no-clicked" role="tree" aria-activedescendant="Shared">

      <ul class="jstree-container-ul">

       <li role="treeitem" aria-expanded="true" id="Shared" class="jstree-node  jstree-open" aria-selected="false">

        <i class="jstree-icon jstree-ocl"/>

        <a class="jstree-anchor" href="#">

         <i class="jstree-icon jstree-checkbox"/>

         <i class="jstree-icon jstree-themeicon"/>Shared</a>

        <ul role="group" class="jstree-children">

         <li role="treeitem" candelete="true" canupdate="true" canaccessurldirectly="true" username="supervisor" id="supervisor_635455499485462066" class="jstree-node  jstree-leaf jstree-last" aria-selected="false">

          <i class="jstree-icon jstree-ocl"/>

          <a class="jstree-anchor jstree-clicked" href="#">

           <i class="jstree-icon jstree-checkbox"/>

           <i class="jstree-icon jstree-themeicon jstree-themeicon-hidden"/>TA_RealTimePowerTrend</a>

         </li>

        </ul>

       </li>

       <li role="treeitem" id="Private" class="jstree-node  jstree-leaf" aria-selected="false">

        <i class="jstree-icon jstree-ocl"/>

        <a class="jstree-anchor" href="#">

         <i class="jstree-icon jstree-checkbox"/>

         <i class="jstree-icon jstree-themeicon"/>Private</a>

       </li>

       <li role="treeitem" aria-expanded="true" id="Other" class="jstree-node  jstree-open jstree-last">

        <i class="jstree-icon jstree-ocl"/>

        <a class="jstree-anchor" href="#">

         <i class="jstree-icon jstree-checkbox"/>

         <i class="jstree-icon jstree-themeicon"/>Other User Trends</a>

        <ul role="group" class="jstree-children">

         <li role="treeitem" candelete="true" canupdate="false" canaccessurldirectly="false" username="TAUser" id="TAUser_635455500857570546" class="jstree-node  jstree-leaf jstree-last">

          <i class="jstree-icon jstree-ocl"/>

          <a class="jstree-anchor  jstree-clicked" href="#">

           <i class="jstree-icon jstree-checkbox"/>

           <i class="jstree-icon jstree-themeicon jstree-themeicon-hidden"/>TA_HistoricalEnergyTrend (TAUser)</a>

         </li>

        </ul>

       </li>

      </ul>

     </div>

    </div>



  • Can anyone from SmartBear Support help on this?

    Thank you.
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)
    Hi Tom,

     


    I see the same hierarchy in IE and Firefox. TestComplete 10.4 is installed on my computer. I suggest that you try updating to the latest product version. Otherwise, please contact our Support team and describe the issue you faced.


     

  • Hi Tanya,



    I tried 10.4 with the same results.  It's interesting that the application's html is represented correctly in Test Complete but the object representation of it is not.  



    I worked around the problem for now by calling FindChildByXpath to verify if the item of interest is in the expected location within the hierarchy and if so, I return the item from the flat-list representation of the tree.  (For this to work the item must be uniquely named within the entire hierarchy.)



    I will follow up with the support team as you suggest.  Thank you for your help.