Forum Discussion
sarya
15 years agoFrequent Contributor
Hi Jared,
Thanks,This code worked fine .I have one more doubt : Now that I have verified the first cell ,I want to see if the third cell value is also "user2".I used a.parent.childNodes[2] but it returned an exception saying it is null or not an object. I want to verify in the loop usind AND that condition will be true when first cell and third cell value match a particular value .
Thanks,This code worked fine .I have one more doubt : Now that I have verified the first cell ,I want to see if the third cell value is also "user2".I used a.parent.childNodes[2] but it returned an exception saying it is null or not an object. I want to verify in the loop usind AND that condition will be true when first cell and third cell value match a particular value .
for(i = 0; i < tbl.rows.length; i++)
{ for (j = 0;j <=0; j++)
{
a = tbl.rows(i).cells(0).innerText;
if((a.indexOf("TestGroup") > -1))
Log.Message("Found: " + a);
b = a.Parent.childNodes[2];
}
}
Related Content
Recent Discussions
- 2 days agovladd1