refactoring to switch to wrappers of AutomationElement and AutomationElementCollection. 505/512 tests are green.