AutomationElement desktop = AutomationElement.RootElement;
AutomationElement programManager = GetElementByNameAndControlType(desktop, ControlType.Pane, "Program Manager");
AutomationElement appIcon = GetElementByNameAndControlType(programManager, ControlType.ListItem, "My Little App");
This code worked in VS2012.
Now, in VS2013, the 1st line fails because the RootElement is null.
What do I need to do to get it working again?
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?