How to validate a messagebox popup in c#?
问题 I was writing some tests and try to validate that some system messagebox is popping up. Like in http://www.dotnetperls.com/messagebox-show. However, the class MessageBox is for creating the messagebox. How shall I capture and validate an system generated one and operate on it? eg: The actions are: 1.click on some execute file. 2.validate a warning messagebox pop up 3.click on yes/no on the messagebox Any hint please? 回答1: One choice is to use White automation framework. For example: Window