Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

AutomationElement.RootElement returns null

$
0
0
 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?

Thanks!!!!


closl


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>