Page 1 of 1

FindSingle timing out

Posted: Wed Mar 16, 2011 2:54 pm
by anzacthecat
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?

Re: FindSingle timing out

Posted: Wed Mar 16, 2011 3:28 pm
by Support Team
Hi,

Have you checked if you RxPath is correct you try to build with your string construction?
Please try your built RxPath with Spy if the element can be found using your RxPath.

Regards,
Peter
Ranorex Team