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

0 like 0 dislike
357 views
by The go-to Tester (222 points)
retagged by

I am trying to compare something as below in TestComplete

  If UBound(gropBoxList) >= 0 Then
    Log.Message("Total number of items found: " & (UBound(gropBoxList) + 1))
    if UBound(gropBoxList) != 4 Then
  Else
    Log.Warning("No items found.")
  End If

But, I am getting error Syntax error while lexing character "!"

Kindly advise

1 Answer

0 like 0 dislike
by

You  can use code as given below:

If UBound(gropBoxList) >= 0 Then
    Log.Message("Total number of items found: " & (UBound(gropBoxList) + 1))
    if UBound(gropBoxList) <> 4 Then
  Else
    Log.Warning("No items found.")
  End If


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...