Then the "value" radio button is selected

Assert that the radio button is or is not selected.

Alternate phrasing using "is / is not selected".

Step pattern

Then (the )*"([^"]*)?" radio button is( not)* selected

Examples

Example #1
Then the "#gender-male" radio button is selected
Example #2
Then the "#gender-female" radio button is not selected
Example #3
And the "#plan-premium" radio button is selected
Example #4
Then the ".option-1" radio button is not selected
Example #5
When I select radio button "Female"
Then the "#gender-female" radio button is selected