Hi..Im testing a WPF windows application. I need to check the no. of checkboxes in a window. I guess Findall will help but Icouldnt understand the explanation. Can you please give me the syntax to find out the no. of checkboxes.
When I spy the object, I see ClrClassname = Checkbox.
You can use code like this:
<font class="small">Code:</font><hr /><pre>...
var wnd = // obtain the window
var cbArray = wnd.FindAll("ClrClassName", "Checkbox").toArray();
van cbNumber = cbArray.length;
In other languages, code will be similar, but the syntax will differ.