Upgrade selenium to 2.40.0. and adapt to API changes. Closes #43
Merge pull request #44 from jlgrock/43

Upgrade selenium to 2.40.0.