Galen: Text verification

232 Views Asked by At

I have just started using Galen with Java + TestNG framework and am trying to figure out how to verify text of an element that has a CSS property display: none associated with it.

Dom structure of that element looks something like this

<td id="invoice-gridrow-1-cell-2">
    <span class="textbox-container horizontal-layout controlElement">
        <input class="textbox-control cost right" type="text" value="1" id="invoice-gridrow-1-cell-2-txt-0" aria-label="">
        <span class="shadow-textbox textbox-control cost right" tabindex="0">1</span>
    </span>
</td>

Element span class="shadow-textbox textbox-control cost right"has a property display: none associated with itself.

I would like to verify the text of that span (span class="shadow-textbox textbox-control cost right"), but it says that the element is not visible on page

I tried to verify text of its parent span element span class="textbox-container horizontal-layout controlElement", but it says that the text is "" but should be "1"

Any help on this would be highly appreciated.

0

There are 0 best solutions below