A simple case of closing notepad after writing in it. A standard ‘Do you want to save’ dialog pops up.
How to handle this dialog? This question is about dealing with this kind of sudden prompt, not really that much about writing into a file.
I’ve tried WaitUIElementAppear activity followed by Click-activity but the process ends up in an timeout.
I’ve tried setting a selector for the Click-activity:
<wnd app='notepad.exe' cls='#32770' title='Notepad' /><wnd aaname='Notepad' cls='DirectUIHWND' /><wnd aaname='Don't Save' cls='Button' title='Do&n't Save' />
but this ends up in timeout also.
How to click ‘Don’t save’ in this popup dialog? Any already existing thread that answer’s this question?
[edit1: tried to clarify the question more]