Update selenium-webdriver and chai, and sort out some linter errors in the new hook code.