Skip to content
CodeKruPro

Select Radio Buttons

23/70

Select Radio Buttons

Radio buttons use the same .check() method as checkboxes. Only one radio in a group can be selected at a time.

On the Radio Buttons page, the first row is one group: #firstSelect1, #secondSelect1, and #thirdSelect1 all share name="select".

Task:

  1. Navigate to https://testkru.com/Elements/RadioButtons
  2. Check radio #firstSelect1
  3. Print whether #firstSelect1 is checked
  4. Check radio #secondSelect1 (selecting a different one in the same group)
  5. Print whether #firstSelect1 is still checked
  6. Print whether #secondSelect1 is checked

Expected output:

First radio checked: true
First after switching: false
Second radio checked: true