Fixed a deprecation warning in a selenium test.