/// <summary>
        /// This is an common extension method to wait for the APS update progess image to disappear
        /// </summary>
        /// <param name="webActions"></param>
        /// <param name="Locater">By locater for the update image</param>
        public static void WaitForUpdateProgressBar(this WebActions webActions, By Locater)
        {
            int  counter   = 0;
            bool Invisible = false;

retry:

            if (webActions.IsDisplayed(Locater))
            {
                counter++;
                System.Threading.Thread.Sleep(2000);
                Invisible = false;
            }
            else
            {
                Invisible = true;
            }


            if (counter < 30 && !Invisible)
            {
                goto retry;
            }
        }