I have a page with a table and few rows where some rows have same texts as the other rows.
I want to click on a button "Delete" if text on the same row contains the text "real" in <td class="user_type">
real
.
<tr id="5gf5h5gh4rthhgh1" data-id="1418753">
<td class="website">www.123.com</td>
<td class="user_type">real</td>
<td class="ip_address">123.123.1.1 ()</td>
<td class="actions">
<div class="list-action">
<button class="btn default check check green markAsChecked" type="button">
<i class="fa fa-check green markAsChecked"></i>Delete</button></div></td>
</tr>
<tr id="5gf5h5gh4g5j1gh4" data-id="1418753">
<td class="website">www.123.com</td>
<td class="user_type">virtual</td>
<td class="ip_address">88.123.2.2 ()</td>
<td class="actions">
<div class="list-action">
<button class="btn default check check green markAsChecked" type="button">
<i class="fa fa-check green markAsChecked"></i>Delete</button></div></td>
</tr>