Set waitForDialog to not sleep in clickOnMenuItem()