So I've got a grid cell that contains 3 small icons which when clicked perform specific operations.
I am able to locate the grid cell via the regular ST.grid API but can not get the condition right to access the nested HTML elements.
HTML Code:
<td class="x-grid-cell x-grid-td x-grid-cell-actioncolumn-1766 x-action-col-cell x-grid-cell-last x-unselectable" style="width:70px;" role="gridcell" tabindex="-1" data-columnid="actioncolumn-1766">
<div unselectable="on" class="x-grid-cell-inner x-grid-cell-inner-action-col" style="text-align:left;">
<div tabindex="-1" role="button" class="x-action-col-icon x-action-col-0 x-fa fa-info-circle" data-qtip="View" data-tabindex-value="0" data-tabindex-counter="1"></div>
<div tabindex="-1" role="button" class="x-action-col-icon x-action-col-1 x-fa fa-pencil-square-o" data-qtip="Edit" data-tabindex-value="0" data-tabindex-counter="1"></div>
<div tabindex="-1" role="button" class="x-action-col-icon x-action-col-2 x-fa fa-trash-o" data-qtip="Delete" data-tabindex-value="0" data-tabindex-counter="1"></div>
</div>
</td>
This is the code I am currently using
Code:
stpo.contractMaintenance.searchGridElementsGrid()
.rowWith("contract_id", "ST_ConID")
.cellAt(16) //works
.down('>> div[data-qtip="Delete"]')
.click();
I assume that the error is in the .down()-method, but I can't seem to figure it out.
Replacing the .down() and .click() with the .visible()-method results in a completed test.