QUick technical query
- This topic has 3 replies, 2 voices, and was last updated 4 years ago by
Sasha ZAP.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › Ask Expert › QUick technical query
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
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:
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
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?
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
Already have an account? Login
Check you SPAM folder if you do not see the email.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |