0
votes

I am a novice Selenium IDE user. I am attempting to “click on” an item in a table whose ID is dynamic; it changes when new items are added or dropped from the table. The specific item in question is identified at the end of the HTML code below [td id="GroupsNotAssigned_LBI2T0"]. The text of the item associated with the id is [NPM Read Write Data and Read Only Reserves].

Thanks in advance for the help Using Selenium IDE 2.9 USING Firefox 42.0

<td id="frmProfile_4_2" class="dxflGroupCell">
<table class="dxflCLTSys dxflItemSys dxflCustomItemSys dxflItem" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border-collapse:separate;">
<tbody>
<tr>
<td class="dxflHALSys dxflVATSys dxflCaptionCell dxflCaptionCellSys" style="width: 98px;">
<label class="dxflCaption">Not a member of:</label>
</td>
</tr>
<tr>
<td class="dxflNestedControlCellSys dxflNestedControlCell">
<input id="GroupsNotAssignedDeletedItems" type="hidden" value="" name="GroupsNotAssignedDeletedItems">
<input id="GroupsNotAssignedInsertedItems" type="hidden" value="" name="GroupsNotAssignedInsertedItems">
<input id="GroupsNotAssignedCustomCallback" type="hidden" value="" name="GroupsNotAssignedCustomCallback">
<table id="GroupsNotAssigned" class="dxeListBox_BFS2014 " cellspacing="0" cellpadding="0" style="height:250px;width:250px;border-collapse:collapse;border-collapse:separate;">
<tbody>
<tr>
<td>
<div id="GroupsNotAssigned_D" class="dxlbd" style="height: 246px; width: 248px; overflow: auto;" tabindex="-1">
<input id="GroupsNotAssigned_VI" type="hidden" name="GroupsNotAssigned" value="113">
<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;border-collapse:separate;visibility:hidden!important;display:none!important;">
<tbody>
<tr id="GroupsNotAssigned_LBI-1" class="dxeListBoxItemRow_BFS2014">
<td id="GroupsNotAssigned_LBI-1T0" class="dxeListBoxItem_BFS2014"> </td>
</tr>
</tbody>
</table>
<table id="GroupsNotAssigned_LBT" cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: separate;">
<tbody>
<tr class="dxeListBoxItemRow_BFS2014">
<tr class="dxeListBoxItemRow_BFS2014">
<tr class="dxeListBoxItemRow_BFS2014">
<td id="GroupsNotAssigned_LBI2T0" class="dxeListBoxItem_BFS2014">NPM Read Write Data and Read Only Reserves</td>
</tr>

[image of code1]

enter image description here

1

1 Answers

0
votes

Not sure exactly what you want to do but it looks like this should work:

<tr>
    <td>click</td>
    <td>//td[contains(@id,"GroupsNotAssigned_LBI"]</td>
    <td></td>
</tr>