I have an checkbox in UI (attached image) and my excel data is as below.
I want to select the checkbox values in the UI whose values are available in excel. Can someone help how to implement this?
My current code is :(Doesn’t work)
TestData exceldata = findTestData(‘Data Files/TableFieldNames’)
System.out.println(" Row count is: " +exceldata.getRowNumbers())
Xpath value is : //div[@id=‘divFieldList’]//label[@class=‘ng-b’][contains(text(),’’)]
Just a suggestion, you could set your Excel to indicate a checkbox, radio button, etc setting, either as a number or word that indicates ON, or OFF. Check the below question where the similar issue has been asked: