Forum Discussion

anumolu9999's avatar
anumolu9999
Contributor
4 years ago
Solved

Web element is not visible in testcomplete object hierarchy

Test Complete object hierarchy is not showing + icon as child under the Panel item. Below element is showing as Panel as whole but not showing any child items under it.   Territory Name  +   The ...
  • AlexKaras's avatar
    4 years ago

    Hi,

     

    I would say this is expected behavior: <i> tag does not represent a web element but just indicates that enclosed text must be in italics. Icon is also not a part of page DOM because it is rendered as a result of applied CSS class.

     

    If you need to click this 'icon' from your test, you may take the parent element (div) and click 5 pixels to the left from its right margin - this is where the 'icon' must be located.

    Pseudocode:

    var obj = page.Find('div', ...);

    obj.Click(obj.Left + obj.Width - 5, obj.Top + obj.Height / 2);