Testing of floating UI elements