Use selenium wait

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