Selenium cannot seem to locate an input element in a table that I specified using the following code:
driver.findElement(By.cssSelector("td:contains('Community Member')+td+td>input:contains('ACTION_DELETE')")).click();
It's throwing an InvalidSelectorException. The following is a snippet of the row in the page source I'm working with:
<tr id="aui_3_2_0_1240" class="portlet-section-alternate results-row alt lfr-role lfr-role-community last">
<td class="align-left col-1 first valign-middle" headers="issq_col-1" colspan="1"> Community Member </td>
<td class="align-left col-2 valign-middle" headers="issq_col-2" colspan="1">
<td id="aui_3_2_0_1239" class="align-left col-3 valign-middle" headers="issq_col-3" colspan="1">
<input id="aui_3_2_0_1211" type="checkbox" name="10124_ACTION_DELETE"/>
</td>
<td class="align-left col-4 valign-middle" headers="issq_col-4" colspan="1">
<td class="align-left col-5 valign-middle" headers="issq_col-5" colspan="1">
<td class="align-left col-6 valign-middle" headers="issq_col-6" colspan="1">
<td class="align-left col-7 valign-middle" headers="issq_col-7" colspan="1">
<td class="align-left col-8 valign-middle" headers="issq_col-8" colspan="1">
<td class="align-left col-9 last valign-middle" headers="issq_col-9" colspan="1">
</tr>
And I am trying to intelligently click the checkbox denoted by the input element above. I should note that all the td's above are also expandable to reveal an input element. Ideally, what I would like is just some code that I can give the value of the first cell in the row as well as part of the name of the checkbox and have it click the checkbox for me. In the example above that would be like ...
clickCheckboxInTable("Community Member","ACTION_DELETE");
Any suggestions as to how to best accomplish this or fix my existing code?

input[name*='ACTION_DELETE']