Yes, a regexp on the error message *is* a good thing. Otherwise this will mask load errors raised inside selenium-webdriver, which could lead to a lot of confusion.