[IronPython] UI Automation and ControlTypeProperty

Shri Borde Shri.Borde at microsoft.com
Mon Mar 24 07:14:27 CET 2008

UI Automation did have a problem with IronPython. See http://blogs.msdn.com/shrib/archive/2008/03/24/ironpython-cannot-call-automationelement-fromhandle.aspx. I am not sure if the issue has been fixed yet by the UI Automation team. Or if you are running into that same issue or something else.

Want to work on IronPython, IronRuby, F#? Visit http://blogs.msdn.com/ironpython/

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Marcel
Sent: Saturday, March 22, 2008 8:34 AM
To: users at lists.ironpython.com
Subject: [IronPython] UI Automation and ControlTypeProperty


I was reading the article on UI automation in MSDN (http://
msdn2.microsoft.com/en-us/magazine/cc163288.aspx) and decided to use
IronPython to control the example.

Unfortunately, I found that finding elements based on type doesn't
work. The example application has 1 button on the form. If I type the
following code I get an AutomationElement object:
PropertyCondition(AutomationElement.NameProperty, "Calculate"))

But with the following code, I get None returned:

The C# code that accompanies the article successfully uses the FindAll
with AutomationElement.ControlTypeProperty. Is this a known issue in
IronPython? I'm using IronPython 1.1.1. Is this fixed in 2.0?

-- Marcel
Users mailing list
Users at lists.ironpython.com

More information about the Ironpython-users mailing list