Selenium WebDriver 4

Select a radio button

Easy30 pts~12 min
  • Radio buttons
  • Element state
Practice app · Workshop Registration

A registration form with text fields, radios, checkboxes, selects and validation.

Test URL
/lab/selenium-select-a-radio-button

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Change the ticket plan radio and verify only one option is selected.

Your task

  1. 1Open TEST_URL and assert #plan-basic is selected by default.
  2. 2Click #plan-team.
  3. 3Assert #plan-team is selected and #plan-basic is not.

Acceptance criteria

  • #plan-team is checked
  • #plan-basic is unchecked
  • At least 2 assertions pass

Selenium WebDriver 4 · Selenium · Forms & inputs