Added a sleep after clicking window in case upgrade button was obscured.
Added a fail out if it can't find the upgrade button.