I found I was able to simply remove this `sleep`, but maybe that causes problems on desktop. Perhaps there's another wait that could be used at this point? Maybe wait for the app to be in the position that you expect it to be?