Applications crash when automated by a ui automation

Viewed 194

I am automating an application with python using the uiautomation library. En python 3.6.8

I can access any element of the application without problems when I use the method

control = auto.ControlFromCursor ()
print (control.AutomationId, control.Name)

but when I try to create the element based on its properties, the application breaks

control = auto.Control(AutomationId=id_, Name=name, ClassName=cls_name)

even if I do this it fails

control = auto.ControlFromCursor ()
print (control.AutomationId, control.Name)
id_ = control.AutomationId
name = control.Name
cls_name = control.ClassName 
control = auto.Control(AutomationId=id_, Name=name, ClassName=cls_name)

I found this, from Microsoft but I don't know where to find those hotfixes or what I should do. Any ideas? :/

https://support.microsoft.com/en-us/topic/applications-crash-when-automated-by-a-ui-automation-client-app-in-windows-b746d17a-fda1-a1a2-9290-431fa155e859

This is the error

enter image description here

0 Answers
Related