I have an element with this html
I have tried this solution and it worked well for me This was with the help of Ziggus' suggestion
Do Until .FindElementById("ContentPlaceHolder1_Label2").Text = "تم حفظ التعديل بنجاح" Application.Wait Now() + TimeValue("00:00:01") Loop