Yshvets
13 years agoOccasional Contributor
How to exit the "While Not" loop
Hi,
I have the following "While Not" in place which is working like a clock. I would like to add an additional logic to exit the loop after X amount of tries (In case the button never becomes available)
..IEXPLORE.pageEcommittingLogin.buttonContinue.Exists
I have the following "While Not" in place which is working like a clock. I would like to add an additional logic to exit the loop after X amount of tries (In case the button never becomes available)
While Not Aliases.sys.IEXPLORE.pageEcommittingLogin.buttonContinue.Exists
..IEXPLORE.pageEcommittingLogin.buttonContinue.Exists
aqUtils.Delay 1000 ' 1 sec delay
Wend
Call Aliases.sys.IEXPLORE.pageEcommittingLogin.buttonContinue.Click
Thank you for the help in advance!