watir login; make a sleep at login only if logout button is not present

Link to #4829
14 jobs for feature-s/4829-test-watir-serveur-rallonger-le-temps-pour-la-connection in 37 minutes and 24 seconds (queued for 5 seconds)