Use selenium wait module

Travis builds fail frequently on the user preferences test.
Explicitly waiting for some driver actions to complete may help.