i am using python+selenium simulate click option from drop menu
here is the drop menu picture enter image description here
and here is the pagesource of 3 different options
<a onclick="DigitSelected('TabMasterContent','N','sub_3','3587822','C')"><table class="chRT"><tbody><tr><td class="chC1p">C</td><td class="chC2p">Hastelloy C-22</td><td class="chC3p">526.00</td><td class="chC4p">73.64</td><td class="chC5p">0</td></tr></tbody></table></a>
<a onclick="DigitSelected('TabMasterContent','N','sub_3','3587823','D')"><table class="chRT"><tbody><tr><td class="chSC1p">D</td><td class="chSC2p">Hastelloy C-4 (2.4610)</td><td class="chSC3p">0.00</td><td class="chSC4p">0.00</td><td class="chSC5p">0</td></tr></tbody></table></a>
<a onclick="DigitSelected('TabMasterContent','N','sub_3','3587824','S')"><table class="chRT"><tbody><tr><td class="chC1p">S</td><td class="chC2p">Stainless steel 316</td><td class="chC3p">0.00</td><td class="chC4p">0.00</td><td class="chC5p">0</td></tr></tbody></table></a>
what I want to do is simply simulate click different options. i am using selenium IDE got the code should be like this
driver.find_element(By.CSS_SELECTOR, ".chRow:nth-child(2) .chC2p").click()
but i just simply want to use code select different options from the first letter of the options , "C", "D","S" , do you have any good ideas to do that? such as this one , I know it is not work
driver.find_element_by_partial_link_text("S").click