FindSingle timing out
Posted: Wed Mar 16, 2011 2:54 pm
I have a lot of checkboxes on a page and I'm trying to check specific ones using:
clickItem(WebDocument webDoc, int ctrIndex1, int chkIndex2)
{
String searchTerm = ".//input[@type='checkbox' and id~'.*ct10" + ctrIndex1 + "_chk" + chkIndex2+"']";
InputTag checkbox = webDoc.FindSingle<Ranorex.InputTag>(searchTerm, 1000000);
checkbox.Checked = "true";
}
the searchTerm generated works fine in Spy. What am I doing wrong?
clickItem(WebDocument webDoc, int ctrIndex1, int chkIndex2)
{
String searchTerm = ".//input[@type='checkbox' and id~'.*ct10" + ctrIndex1 + "_chk" + chkIndex2+"']";
InputTag checkbox = webDoc.FindSingle<Ranorex.InputTag>(searchTerm, 1000000);
checkbox.Checked = "true";
}
the searchTerm generated works fine in Spy. What am I doing wrong?