use waitUntil instead of bot.sleep