I am having trouble to automate or atleast retrieve the content present inside a MessageDialog using pywinauto. Can someone help me in overcoming this problem. So, when I use print_control_identifiers() on my dialog I get following output:
DirectUIHWND - '' (L620, T446, R1293, B552) 'DirectUIHWND' 'OKDirectUIHWND'
CtrlNotifySink - '' (L1203, T515, R1283, B543) 'CtrlNotifySink7' 'OKCtrlNotifySink'
Button - 'OK' (L1203, T515, R1283, B543) 'Button' 'OK' 'OKButton'
I tried using WindowText(), but got nothing. The dialog appearance looks similar attached file. I want to access "File Imported correctly" message.