Revert "Upgrade selenium to latest version 2.40.0."

This reverts commit 86bb14e0b97ad766b3ac43c1907b04589e670425.