'Sets selection of radio button group identified by `group_name` to `value`.
The radio button to be selected is located by two arguments:
- `group_name` is used as the name of the radio input
- `value` is used for the value attribute or for the id attribute
The XPath used to locate the correct radio button then looks like this:
//input[@type=\'radio\' and @name=\'group_name\' and (@value=\'value\' or @id=\'value\')]
Examples:
| Select Radio Button | size | XL | # Matches HTML like <input type="radio" name="size" value="XL">XL</input> |
| Select Radio Button | size | sizeXL | # Matches HTML like <input type="radio" name="size" value="XL" id="sizeXL">XL</input> |'

@keyword
def select_radio_button(self, group_name, value):

    self.info(("Selecting    '%s'    from    radio    button    '%s'." % (value, group_name)))
    element = self._get_radio_button_with_value(group_name, value)
    if (not element.is_selected()):
        element.click()
