I use my code to identify the checkbox but I don't know how to test its value. Spy detects same attributes in both cases
This is how I click a checkbox
Code: Select all
//Receive the div container where the checkbox label is
private void CheckBoxValue(WebElement checkBox)
{
IList<LabelTag> inners = checkBox.FindDescendants<LabelTag>();
foreach (LabelTag label in inners)
{
if (label.Class == "k-checkbox-label")
{
label.Click();
}
}
}