I have a popup with list of names. I need to choose "mahmoud" for instance by clicking the "select" link beside the label "mahmoud". How to click that select? I am using selenium webdriver with python.
# these 2 code lines are not working
driver.find_element_by_name('123')
driver.find_element_by_link_text('Select').click()
name
- mahmoud select
- ahmed select
- engy select
# mahmoud is text,select is link
The HTML code for the first row is:
<tr class="gridRow">
<td>1</td>
<td>Mahmoud</td>
<td>
<a href="javascript:void(0)">Select</a>
</td>
</tr>