Upgrades Selenium dependency to version 2.39.0

This fixes some failures in the test suite.