class Capybara::RackTest::Node
def set_radio(_value) # rubocop:disable Naming/AccessorMethodName
def set_radio(_value) # rubocop:disable Naming/AccessorMethodName other_radios_xpath = XPath.generate { |xp| xp.anywhere(:input)[xp.attr(:name) == self[:name]] }.to_s driver.dom.xpath(other_radios_xpath).each { |node| node.remove_attribute('checked') } native['checked'] = 'checked' end