Fixed selenium test that did not handle invisible fields correctly