Micro Focus QTP (UFT) Forums
css sprited image checking - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: css sprited image checking (/Thread-css-sprited-image-checking)



css sprited image checking - gerfred - 01-29-2013

Hi,

have you any idea on how checking a sprite image (from CSS) ?

I would like to check if the good part of the sprite is visible.

The html code is like :
Code:
<td class="gridCell " tabindex="-1" headers="th-dependencies_grid_dependencyStatus">
<span>
<span class="xxxGridIcon xxxGridValid"> </span>
</span>
</td>

The css code is like:
Code:
.xxxGridIcon {
    background-image: url("images/xxx/xxxGrid.png");
    background-repeat: no-repeat;
    height: 16px;
    text-align: center !important;
    width: 16px;
}
.xxxGridValid {
    background-position: 0 center;
}

Attachment : the sprite image

Regards