Choosing values for Checkbox and Radio button from Excel

You could assign either a word or number in Excel that indicates a Checkbox (or Radio button) is ON (or OFF). Then compare that word or number in an if statement and adjust the element as needed.

if (excelWord == “set”) {
WebUI.click(findTestObject(‘Page_Form/input_ServiceLists’))
}

or

if (excelWord == “2”) {
WebUI.click(findTestObject(‘Page_Form/input_ServiceLists’))
}

1 Like