不要忽略:运行WebDriver测试之前需要做的事情(也要提醒自己): Must have browser webdrivers in $PATH for browsers you want to test (and have those browsers installed) Chrome: https://sites.google.com/a/chromium.org/chromedriver/downloads Firefox: https://github.com/mozilla/geckodriver/releases Safari: in Terminal: