I am working on a python selenium code to try to click a radio button. Here is the html code:
<tbody>
<tr class="row-event">
<td class="selection-cell"><input type="radio" class=""></td>
<td>812589</td>
<td>john</td>
</tr>
<tr class="row-event">
<td class="selection-cell"><input type="radio" class=""></td>
<td>909720</td>
<td>bob</td>
</tr>
</tbody>
I want to click the radio-button where it is of the same row that containing "812589" value. How may this "target" being defined in the following code.
def clickTargetRadio(self):
by = By.XPATH
target = "" # ???
WebDriverWait(self.driver, 10).until(EC.presence_of_element_located((by, target))).click()