fbpx

QUick technical query

QUick technical query

Home Forums Ask Expert QUick technical query

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32765
    asd asd
    Participant

      I am trying to script a goto statement, is it supported? Can you provide me a sample?

      I am looking for the code to go to a particular statement ,standard goto label operation

      #32766
      Sasha ZAP
      Moderator

        Hello gadget,

        Basically there is the following ScrollTo method:
        https://www.zaptest.com/user-zone/product-training/zaptest/methods/method-scrollto

        Once the section of the page where the required object appears you can use the regular object’s recognition features to locate the required object (Object can be a text, string, or any other feature in the app’s page).

        P.S. If you wish to know more how to use ZAPTEST please refer to our online ZAPTEST Beginner Tutorial at:

        Tutorial

        Also you can check all ZAPTEST features at the “How-To” page:
        https://www.zaptest.com/user-zone/product-training

        Hope this helps.  

        Thanks,
        ZAPTEST Team

        #32767
        asd asd
        Participant

          Thanks SashaY,

          But my questions was more within the script, I see GoTo recognized as a keyword in the editor, but it’s not picking up the label format. is there a sample GoTo command snippet for the script?

          #32768
          Sasha ZAP
          Moderator

            Hello gadget,

            ZAPTEST uses the VBScript as its coding language, in VBS there is no GoTo.
            I’m sorry for the confusion, I’ve alerted this to our R&D team and they’ll remove its highlighting.

            Basically if the object is visible and can be recognized by ZAPTEST then there is no need to use the GoTo statement:
            And if the object appears after doing some scrolling of the page then you can use the ScrollTo method.

            Hope it helps.

            Thanks,
            ZAPTEST Team

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

          Virtual Expert

          ZAPTEST

          ZAPTEST Logo