How do I test modal dialogs with Selenium?
问题 I'm getting started with Selenium IDE and trying to test a webapp that's full of modal dialogs ( window.showModalDialog ). Recording the test seems to work (except there's nothing in the log when the dialog pops up) but they don't play back properly. The script actually opens the window (triggered by a button click), but then just waits indefinitely. Any suggestions? 回答1: From the Selenium FAQ, Selenium apparently works with some types of dialogs but not others: I can't interact with a popup