sarya
13 years agoFrequent Contributor
'checked' property not being recongnised for an object in firefox
Hi,
I am trying to get checked property for a checkbox but it is not present in the test complete properties.
In the screenshot,I have captured the bigger checkbox and trying to get the checked property for the child of the bigger checkbox.The bigger checkbox firstChild is the checkbox to be clicked but it does not have checked property.How to find that?
GetNextCell4Read_All(allObj, cellText){ obj = allObj.FindChild("innerHTML", cellText);v nativeCell = obj.parentNode.cells.item(1); allObj.FindChild("innerHTML", nativeCell.innerHTML); } cellText = "qa16"; cellObj = GetNextCell4Read_All(all2, cellText);.Message(cellObj.firstChild.checked);Thanks,Sumedha
I am trying to get checked property for a checkbox but it is not present in the test complete properties.
In the screenshot,I have captured the bigger checkbox and trying to get the checked property for the child of the bigger checkbox.The bigger checkbox firstChild is the checkbox to be clicked but it does not have checked property.How to find that?
function GetNextCell4Read_All(allObj, cellText)
{var obj = allObj.FindChild("innerHTML", cellText);
var nativeCell = obj.parentNode.cells.item(1);
return allObj.FindChild("innerHTML", nativeCell.innerHTML);
}
var cellText = "qa16";
var cellObj = GetNextCell4Read_All(all2, cellText);
Log.Message(cellObj.firstChild.checked);
Thanks,
Sumedha
GetNextCell4Read_All(allObj, cellText){ obj = allObj.FindChild("innerHTML", cellText);v nativeCell = obj.parentNode.cells.item(1); allObj.FindChild("innerHTML", nativeCell.innerHTML); } cellText = "qa16"; cellObj = GetNextCell4Read_All(all2, cellText);.Message(cellObj.firstChild.checked);Thanks,Sumedha