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

FindAll for Disabled Items window in Excel 2010 options fails to return #1219

@ShortCipher42

Description

@ShortCipher42

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions