URL validation
- This topic has 1 reply, 2 voices, and was last updated 4 years, 7 months ago by Sasha ZAP.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Ask Expert › URL validation
I want to know what method will be used to validate the navigated URL
For Instance: http://www.amazon.com will be the home screen, thereby, I will be navigating to multiple screens than the URL will be “www.amazon.in/bestsellers/Electronics/ mobile/iphone8” so what will be the method to check whether it is a valid navigation path or not?
Hello sunil.ganta,
Basically there are 2 ways you can check and validate URLs in ZAPTEST:
1. Use the ZAPTEST build-in “URL Scanner” (Appears in the upper-right icons’ toolbar):
In it you can specify the main parent URL and by clicking on the Scan button the tool will navigate and run itself through all of the child URLs and other sub-URLs which branch from the main parent URL;
When it will finish you can click on the “Export to HTML” button and generate its final report, this report will show you all valid URLs and all URLs which have different issues in them.
2. Scan only once a certain valid page using the ZAPTEST GUI Map;
Specify conditions to check all required URLs (Please note in ZAPTEST Free Edition you cannot use Loops), before entering the condition use the SetProperty method to update the “regexpwndtitle” property during runtime using code such as:
Application(“Application”).SetProperty “regexpwndtitle”, Expected title of the new URL (Can use also Regular Expression)
Then use a condition such as this one to check if the URL’s page is valid:
If Application(“Application”).Exist Then
Hope this 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. |