Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
516 views
by
retagged by
We are doing automation in TestComplete using VB script. How do I use break like statement to break the loop?

1 Answer

0 like 0 dislike
by

Exit is the statement from VB script you can use to exit the loop.

E.g. If you are using Do While loop,

Do While (Condition)

  ' Do something



  If (ExitCondition) Then Exit Do



  ' Do something else

Loop

If you are using for loop you can use

Exit For

for while loop you can use,

Exit While.

...