I am using robot framework. How can I test if a checkbox is selected? I want to run a keyword if a checkbox is selected like:
${checked} = Checkbox Should Not Be Selected xpath=.//*[@id='0,1,1,6']/td[11]/input
Run Keyword if '${checked}' Click Element xpath=.//*[@id='0,1,1,6']/td[11]/input and wait
i.e. to click there if is not already clicked.
(The code of above is wrong, I know)