Skip to content
This repository has been 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

Open
ShortCipher42 opened this issue Jul 27, 2015 · 2 comments

Comments

@ShortCipher42
Copy link

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)
@slide
Copy link
Contributor

slide commented Jul 28, 2016

Can you provide more information to reproduce this issue?

@slide
Copy link
Contributor

slide commented Jul 28, 2016

Can you provide your project setup? I'm not familiar with the usage model you are using.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants