fbpx

Error running script with JavaScript

Error running script with JavaScript

Home Forums Ask Expert Error running script with JavaScript

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31074
    Don Rickmyre
    Participant

      Every time I attempt running a ZapTest script in JavaScript, I get an error pop-up that says Error on Step 2
      Expected '{'

      If I click the X in the window, the rest of the test proceeds as planned. Then the test result tells me that the error was at Line 0. It seems something isn’t working correctly. I am attaching a very simple script I wrote so you can see the error.

      #31077
      Valentin ZAP
      Keymaster

        Good afternoon, Drickmyre!

        This script doesn’t contain any mistakes. The reason why you are getting this error – probably you are using external “Functional Libraries” where you have wrong language or some mistakes.

        To check your global “Functional Libraries” please open “Options” dialog [“TOOLS” -> “Options…”] and then open “Function Libraries” tab.

        Let us know if you still have some issues with that.

        Thank you,
        ZAPTEST Team

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.

      Virtual Expert

      ZAPTEST

      ZAPTEST Logo