Firefox not closing after selenium tests are run
Firefox runs, but when the tests finish executing Firefox stays up.
This is on Debian Linux 开发者_StackOverflowwith Firefox 3.6.
The solution to this was to point Selenium at the firefox-bin file instead of the firefox file, which it may use by default if it's at /usr/bin/firefox.
This question explains how to specify a path to firefox-bin: How to explicitly specify a path to Firefox for Selenium?
The same problem happened to me when using the screenshot taking functionality and selecting a non-existing folder to store the screenshots. As seen on this other scenario, PHPUnit's error handling is rather bad.
精彩评论