// Path: src/main/java/org/robotframework/formslibrary/operator/RadioOperator.java
// public class RadioOperator extends AbstractComponentOperator {
// 
//     /**
//      * Initialize a RadioOperator for the radio button option matching the given
//      * name.
//      */
//     public RadioOperator(String identifier) {
//         super(new ByNameChooser(identifier, ComponentType.EXTENDED_CHECKBOX));
//     }
// 
//     /**
//      * Select the radio option.
//      */
//     public void select() {
//         ObjectUtil.invokeMethod(getSource(), "simulatePush()");
//     }
// 
//     /**
//      * Check if this radio option is selected.
//      */
//     public boolean isSelected() {
//         return ObjectUtil.getBoolean(getSource(), "getState()");
//     }
// }


import org.robotframework.formslibrary.operator.RadioOperator;
import org.robotframework.javalib.annotation.ArgumentNames;
import org.robotframework.javalib.annotation.RobotKeyword;
import org.robotframework.javalib.annotation.RobotKeywords;

package org.robotframework.formslibrary.keyword;


@RobotKeywords
public class RadioKeywords {

	@RobotKeyword("Select Radio Button.\n\nExample:\n| Select Radio Button | _radio option_\n")
	@ArgumentNames({ "identifier" })
	public void selectFormsRadioButton(String identifier) {

// Path: src/main/java/org/robotframework/formslibrary/operator/RadioOperator.java
// public class RadioOperator extends AbstractComponentOperator {
// 
//     /**
//      * Initialize a RadioOperator for the radio button option matching the given
//      * name.
//      */
//     public RadioOperator(String identifier) {
//         super(new ByNameChooser(identifier, ComponentType.EXTENDED_CHECKBOX));
//     }
// 
//     /**
//      * Select the radio option.
//      */
//     public void select() {
//         ObjectUtil.invokeMethod(getSource(), "simulatePush()");
//     }
// 
//     /**
//      * Check if this radio option is selected.
//      */
//     public boolean isSelected() {
//         return ObjectUtil.getBoolean(getSource(), "getState()");
//     }
// }


// Path: src/main/java/org/robotframework/formslibrary/keyword/RadioKeywords.java
import org.robotframework.formslibrary.operator.RadioOperator;
import org.robotframework.javalib.annotation.ArgumentNames;
import org.robotframework.javalib.annotation.RobotKeyword;
import org.robotframework.javalib.annotation.RobotKeywords;

package org.robotframework.formslibrary.keyword;


@RobotKeywords
public class RadioKeywords {

	@RobotKeyword("Select Radio Button.\n\nExample:\n| Select Radio Button | _radio option_\n")
	@ArgumentNames({ "identifier" })
	public void selectFormsRadioButton(String identifier) {

		new RadioOperator(identifier).select();
