robotframework/robotframework.github.com

Checking of selected radio button

abeora opened this issue · 1 comments

The result is not consistent and even the radio button is not selected it returns true, Hope this will be fixed as I need to use it on my testing.

`${is_checkbox_selected}     RUN KEYWORD AND RETURN STATUS    EXECUTE JAVASCRIPT       document.getElementById('${key}').checked
LOG TO CONSOLE      ${key} = ${is_checkbox_selected}
${actual_checkbox}     RUN KEYWORD IF    '${is_checkbox_selected}' == 'False'               SET VARIABLE    Inactive
...                   ELSE IF    '${is_checkbox_selected}' == 'True'                        SET VARIABLE    Active
SET TO DICTIONARY   ${actual holder}        ${key}          ${actual_checkbox}
LOG TO CONSOLE      ${actual_checkbox}`