I am using Selenium Webdriver with an Excel VBA automatization in Chrome and I am having some trouble when waiting until users clics a button.
The web's code is the following:

I have tried with FindElementByCss, FindElementByID..., also with IsPresent, IsEnabled... but nothing worked. Mi code right now is the following:
t = Timer
Do While bot.FindElementById("ui-button-text").IsPresent = True
bot.Wait 500
If Timer - t = 10 Then Exit Do 'Para evitar bucle infinito
Loop
Thanks in advance!
As per the HTML:
ui-button-textis the value of theclassattribute, but not of theidattribute and there are multiple<span>elements withclassattribute value asui-button-textwith different textContent.To validate the presence of the elements you can use the following Locator Strategies:
Element with text as Cancelar:
Using xpath:
Element with text as Repetir:
Using xpath:
Element with text as Aceptar:
Using xpath:
To validate the if the elements are enabled, you can use the following Locator Strategies:
Element with text as Cancelar:
Using xpath:
Element with text as Repetir:
Using xpath:
Element with text as Aceptar:
Using xpath: