This repository was archived by the owner on Sep 14, 2018. It is now read-only.

Description
After opening options, selecting Add-ins tab, selecting Disabled Items from combobox, and clicking "Go" I am attempting to use the following to target the "Disabled Items" window that appears as a child of Excel Options.
self.appCalc = None
self.excelbase = None
_rootElement = AutomationElement.RootElement
self.nameCondition = PropertyCondition(AutomationElement.NameProperty,"Excel Options")
self.excelbase = _rootElement.FindFirst(TreeScope.Descendants, self.nameCondition)
self.exceltree = self.excelbase.FindAll(TreeScope.Subtree, Condition.TrueCondition)
self.disabledbase = None
self.nameCondition = PropertyCondition(AutomationElement.NameProperty,"Disabled Items")
self.disabledbase = self.excelbase.FindFirst(TreeScope.Descendants, self.nameCondition)
self.disabledtree = self.disabledbase.FindAll(TreeScope.Subtree,Condition.TrueCondition)
On Office 2013, this snippet is no issue at all. On Office 2010, this snippet never returns:
self.disabledtree = self.disabledbase.FindAll(TreeScope.Subtree,Condition.TrueCondition)