Fix functional test issues with element not being on screen