jeudi 24 décembre 2020

What could be the xpath/Css selector for below HTML tag, How to select a specific radio button using Selenium xpath

  1. What could be the xpath/Css selector for below HTML tag , My question is How to select a radio button of bike.
  2. let's Assume below are the dynamic radio button, we have 100 numbers radio buttons are present and here we can not predict the index number of our radio button

##

    <tr><td class="textAlignCenter" id="clientDocTypeSelection"><input class="marginL10" name="clientRadio" type="radio"></td><td id="clientDocTypeDescription"> Bike </td></tr>

    
    <tr><td class="textAlignCenter" id="clientDocTypeSelection"><input class="marginL10" name="clientRadio" type="radio"></td><td id="clientDocTypeDescription"> Car </td></tr>

</tbody> </table>

Aucun commentaire:

Enregistrer un commentaire