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? :/
This is the error