This project is read-only.

Search Criteria and multiple controls with the same name

Jun 12, 2009 at 5:10 PM

I was looking at the help pages and specifically this example:

button = window.Get<Button>(SearchCriteria.ByAutomationId("btnOK").AndIndex(1));

And the help says that it looks at X and then Y, but the index seems to be based on Y then X.

The higher control definitely gets the lower Index in the tests I've been running.


Any ideas?