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 above elements source code as below
<div _ngcontent-wwr-c13="" class="col-5 col-md-5 cassign-content-head mt-4 mb-4 pb-4">Territory Name
<i _ngcontent-wwr-c13="" class="fa fa-plus-circle crsassign-fa fa-crs-plus pl-2" aria-hidden="false" data-toggle="tooltip" title="Add">
</i>
</div>
Here same i tag in a <td> is able to accessible
Is testcomplete support these?
Thank you,
Anumolu.
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);