For example I have the code:
app = application.Application()
app.start_(r"mmc.exe ServerManager.msc", timeout=10)
app.connect_(title = "Server Manager")
a = app.ServerManager.ChildWindow(title_re = ".+Multiple CAs can be.+")
#Now I need to find particular child of `a`
b = app.ServerManager.ChildWindow(parent = a.Parent().Parent().handle, title = "Add Role Services")
In this case parent handle that I'm passing will be overwritten with the app's handle.
To fix this just modify the following code:
line 560: ctrl_criteria["parent"] = dialog.handle
562: except KeyError:
563: ctrl_criteria["parent"] = dialog.handle
This way, if the parent is passed, it will not be overwritten
Log in to post a comment.