Fixing selenium tests
(cherry picked from commit cf9d5f7)